Just what makes Linux tick
Last time, we spoke about the Linux process scheduler and how it runs in the shadows swapping processes in and out of a running state so everyone gets a stab at the CPU. Today we’ll go over how the kernel keeps track of time and just what it means to do something in a jiffy.
Just to recap, last time we saw that every process has a priority assigned to. The scheduler will bump this priority up and down as time goes on and depending on how responsive the process is.
If the task stops often because it is waiting for input or output (I/O) – such as user input on a keyboard, or for a disk drive to send data – it will have its priority increased over time. This is because the kernel considers the application to be behaving nicely; each time it stops while waiting for I/O it voluntarily yields control back to the scheduler allowing another process to run for a while.
By contrast, if the process is very computationally intense – crunching lots of numbers without much pause for I/O – then the kernel will be forced to pre-empt the process periodically to allow another task an opportunity to run.
- Login or register to post comments
- Printer-friendly version
- 1407 reads
- PDF version
More in Tux Machines
- Highlights
- Front Page
- Latest Headlines
- Archive
- Recent comments
- All-Time Popular Stories
- Hot Topics
- New Members
digiKam 7.7.0 is releasedAfter three months of active maintenance and another bug triage, the digiKam team is proud to present version 7.7.0 of its open source digital photo manager. See below the list of most important features coming with this release. |
Dilution and Misuse of the "Linux" Brand
|
Samsung, Red Hat to Work on Linux Drivers for Future TechThe metaverse is expected to uproot system design as we know it, and Samsung is one of many hardware vendors re-imagining data center infrastructure in preparation for a parallel 3D world. Samsung is working on new memory technologies that provide faster bandwidth inside hardware for data to travel between CPUs, storage and other computing resources. The company also announced it was partnering with Red Hat to ensure these technologies have Linux compatibility. |
today's howtos
|
Recent comments
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago