How does the Kernal schedules Tasks?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How does the Kernal schedules Tasks?
# 1  
Old 04-11-2006
Question How does the Kernal schedules Tasks?

hello all,

as we know that the kernal Schedules tasks with some time slice given to each.
how does the Kernal know that the time of a Task has been elapsed?

does it follow the syatem Clock?or how?

thanks for your time
# 2  
Old 04-11-2006
# 3  
Old 04-11-2006
dsberrf has a valid point, this would be a lengthy chapter in a book. Another point is that different kernels has different algorithms for scheduling. But briefly, the "clock" is a component that generates periodic interrupts. The interrupt routine does stuff when it is called by the clock. A major routine is called a certain number of times per second with 100 times per second being a common value. This major routine is called a "clock tick" (or "jiffy" on linux). A process' timeslice might be one tenth of a second so this would be represented as a 10. The timeslice is always some fixed number of "clock ticks". At each clock tick, it is decremented. When it hits zero, the scheduler will decide which process gets the cpu. If no other process wants the cpu, the process might get another timeslice.

There is a lot more to this, but I'm not going to write that lengthy chapter... Smilie
# 4  
Old 04-12-2006
I wasn't trying to be a smart A$$, just so you know.

Also, Perderabo has given one of the best short descriptions I've seen.

Which is the main reason I did NOT. Smilie

[dsbeerf == FreeBSD, backwards.]
# 5  
Old 04-12-2006
MySQL thanks for ur reply

I got some Idea and go through the lonk given.

thanks
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Linux

Linux Kernal version numbering

Please clarify on below two which one is the latest Kernal version. Also clarify me , how to break and understand, which part meant for what? kernel-2.6.18-348.6.1.el5.i686.rpm kernel-2.6.18-308.11.1.el5.i686.rpm Thanks (3 Replies)
Discussion started by: Siva SQL
3 Replies

2. Solaris

Kernal Parameters

Hi, Can you please let me know about kernal parameters? Where we can see that kernal parameters? we are using System = SunOS 5.10. Please let me know commands to see these kernal parameters file or files. (1 Reply)
Discussion started by: kancherla.sree
1 Replies

3. SCO

Kernal Panic questions

I am trying to restore Unixware 7.1 from a backup using RestoreEdge which is from Microline version 2. The restore is on another machine using the same RAID controller and TBU. We are retiring the other machine. Anyway, we get to disk #2 and it panics. Here is the Pic. Can anyone tell me... (13 Replies)
Discussion started by: ccd1977
13 Replies

4. Solaris

kernal parameter setting

hi, can anybody tell me how to increase the parameters like project.max-shm-ids on solaris10. i have used prctl, but got reset while server reboot. thnks and regards Ajay (1 Reply)
Discussion started by: ajaysahoo
1 Replies

5. UNIX for Dummies Questions & Answers

Kernal Information

Hi friends, i would like to know the kernal information (semaphores), which command do i use Thanks (4 Replies)
Discussion started by: shaan_dmp
4 Replies

6. Linux

reload kernal without reboot

Hello! Does anyone know howto reload your kernal without rebooting the machine? I´ve updated the "/etc/security/limits.conf " file and need to make this active without rebooting the machine. this is Red Hat Advanced Server 2.1AS Regards... dOzY (3 Replies)
Discussion started by: dozy
3 Replies

7. UNIX for Dummies Questions & Answers

Kernal Panic

Received the following on the weekend. Panic:k_trap kernel mode trap type 0X0000000e cannot dump 163739 pages to dumpdev hd (1/41):space for only 48640 pages Dump not complete Safe to power off or press any key to reboot Any ideas how to fix this one? It also happen a month ago. (3 Replies)
Discussion started by: jcoleman544
3 Replies

8. Filesystems, Disks and Memory

kernal parameters on Linux 7.3

Hi all, I am running 7.3 Redhat Linux, I have Oracle database running on it and I have some problem with the memory. every time I startup the database, the memory was peak up to 630M of Ram out 640M ram on the entire box and I didn't specify that much of memory on my database. Oracle advise me... (2 Replies)
Discussion started by: lapnguyen
2 Replies

9. UNIX for Advanced & Expert Users

kernal log message

Hi all, we have been noticed that few of processes failed with no reason. when I chcked the log messages, I have got the following error messages writen to ktlog just a few minutes before! When the kernel writes such warning meassages? will the system sends/generates any signals like... (1 Reply)
Discussion started by: reddyb
1 Replies
Login or Register to Ask a Question