LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   scheduling processes (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/scheduling-processes-4175463533/)

glennpl 05-26-2013 06:31 PM

scheduling processes
 
I am a novice to embedded linux. What I would like to know is how do you schedule a process(basic round robin)on embedded linux system how do you inform kernel of process name(exe)and priority? Is this done with scripts? I think the init. routine calls a script that i can launch my process from There a few that are called from init what(and where)are script choices? and how do I prioritize my real time processes?

onebuck 05-27-2013 09:29 AM

Member Response
 
Hi,

Welcome to LQ!
Quote:

Originally Posted by glennpl (Post 4959481)
I(new to embedded linux) am thinking of buying robert love book on linux kernel. What I would like to know is how do you schedule a process(basic round robin)on embedded system? After image of linux is created and copied to embedded board how do you update processes or add process to kernel do you recreate kernel and recopy image to target board?

Look at these links for reference;
Quote:

From Linux Kernel section of Slackware®-Links;

Anatomy of the Linux kernel <- 'The Linux® kernel is the core of a large and complex operating system, and while it's huge, it is well organized in terms of subsystems and layers. In this article, you explore the general structure of the Linux kernel and get to know its major subsystems and core interfaces. Where possible, you get links to other IBM articles to help you dig deeper'

Linux Kernel Interactive Map <- Great! With linked references within map.

Many links in that section to help you.

Free online information listed at Linux Books & Online Magazines

HTH!

theNbomr 05-29-2013 10:05 AM

It sounds like you may be overthinking the whole question. Scheduling is done internally to the kernel, and is not generally a matter for end users or userspace applications in any general sense. There are some ways that you can influence the scheduling algorithm that is built into the kernel by selecting appropriate configurations at build time. This is probably not what you want.

In general, any userspace process will be scheduled to run by the kernel according to the process's requirements and state. It may do various things that cause it to enter various states within the kernel's scheduler, such as request IO, sleep, etc. You may use nice to influence any process's priority within the scheduler.

In other words, just run your program, and let the kernel figure out how to schedule it's runtime.

--- rod.


All times are GMT -5. The time now is 05:38 PM.