Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 17. Server Operating System > Processes and the Kernel

17.4. Processes and the Kernel

Unix work is divided up into processes, which you can think of as tasks to be done. Each process has a unique process ID, which is simply an integer and an owner, along with priority and many other attributes that you can see with the ps command.

Unix is multiuser and multitasking, so many processes belonging to many users can be running concurrently. (NT, on the other hand, is multitasking, but not multiuser.) Of course, Unix processes are not all running at exactly the same time; it looks that way because the operating system is letting each process run for a bit of time, then interrupting it and letting the next one run, more or less in round-robin fashion. The process that does the scheduling runs in the kernel and is known as the scheduler. Processes are scheduled in terms of "clock ticks," which are hundredths of a second, so every process is allocated at least one one-hundredth of a second when it starts its turn. The scheduler itself typically takes much less than that, around one millisecond. This is known as scheduling latency. Scheduling latency increases as the number of tasks to be run increases.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint