LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
Search this Thread
Old 05-26-2013, 06:31 PM   #1
glennpl
LQ Newbie
 
Registered: May 2013
Location: Fayetteville NC
Posts: 5

Rep: Reputation: Disabled
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?

Last edited by glennpl; 05-29-2013 at 12:08 PM.
 
Old 05-27-2013, 09:29 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 11,022
Blog Entries: 1

Rep: Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364
Member Response

Hi,

Welcome to LQ!
Quote:
Originally Posted by glennpl View Post
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!
 
1 members found this post helpful.
Old 05-29-2013, 10:05 AM   #3
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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.
 
  


Reply

Tags
embedded


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Scheduling kernel and user processes on separate cpus. qubemaster12 Linux - Software 2 11-23-2012 02:08 AM
Limitations of System Processes and Oracle Processes in RHEL AS3.0 sathyguy Linux - Enterprise 0 03-02-2007 11:52 PM
linux cpu scheduling on RT processes cathiejcm Linux - Software 1 01-15-2006 03:08 PM
commands for Scheduling processes jadukor Slackware 4 12-16-2005 06:19 PM
monitoring active processes and identifying the required processes. gajaykrishnan Programming 2 08-13-2004 01:58 AM


All times are GMT -5. The time now is 04:36 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration