Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How does the Kernal schedules Tasks? Post 302071059 by Perderabo on Tuesday 11th of April 2006 10:36:05 PM
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
 

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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. 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

7. 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

8. 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

9. 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
OCLOCK(1)						      General Commands Manual							 OCLOCK(1)

NAME
oclock - round X clock SYNOPSIS
oclock [-option ... ] DESCRIPTION
Oclock simply displays the current time on an analog display. OPTIONS
-fg color choose a different color for the both hands and the jewel of the clock -bg color choose a different color for the background. -jewel color choose a different color for the jewel on the clock. -minute color choose a different color for the minute hand of the clock. -hour color choose a different color for the hour hand of the clock. -backing { WhenMapped Always NotUseful } selects an appropriate level of backing store. -geometry geometry define the initial window geometry; see X(7). -display display specify the display to use; see X(7). -bd color choose a different color for the window border. -bw width choose a different width for the window border. As the Clock widget changes its border around quite a bit, this is most usefully set to zero. -shape causes the clock to use the Shape extension to create an oval window. This is the default unless the shapeWindow resource is set to false. -noshape causes the clock to not reshape itself and ancestors to exactly fit the outline of the clock. -transparent causes the clock to consist only of the jewel, the hands, and the border. COLORS
If you would like your clock to be viewable in color, include the following in the #ifdef COLOR section you read with xrdb: *customization: -color This will cause oclock to pick up the colors in the app-defaults color customization file: /usr/lib/X11/app-defaults/Clock-color. Below are the default colors: Clock*Background: grey Clock*BorderColor: light blue Clock*hour: yellow Clock*jewel: yellow Clock*minute: yellow SEE ALSO
X(7), X Toolkit documentation AUTHOR
Keith Packard, MIT X Consortium X Version 11 oclock 1.0.3 OCLOCK(1)
All times are GMT -4. The time now is 06:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy