The tech world Blog is about to SEO, Blogging, Wordpress, Earn money and Tips and tricks. Be With us for Awesome Stuff!!
Sunday, 4 November 2012
Real-Time Scheduling
Round Robin (RR)
- Each process gets a small unit of CPU time (time quantum), usually 10-100 milliseconds. After this time has elapsed, the process is preempted and added to the end of the ready queue.
- If there are n processes in the ready queue and the time quantum is q, then each process gets 1/n of the CPU time in chunks of at most q time units at once. No process waits more than (n-1)q time units.
- Performance
- q large Þ FIFO
- q small Þ q must be large with respect to context switch, otherwise overhead is too high.
Priority Scheduling
- A priority number (integer) is associated with each process
- The CPU is allocated to the process with the highest priority (smallest integer º highest priority).
- Preemptive
- nonpreemptive
- SJF is a priority scheduling where priority is the predicted next CPU burst time.
- Problem º Starvation – low priority processes may never execute.
- Solution º Aging – as time progresses increase the priority of the process
CPU Schedular
- Selects from among the processes in memory that are ready to execute, and allocates the CPU to one of them.
- CPU scheduling decisions may take place when a process:
- Switches from running to waiting state.
- Switches from running to ready state.
- Switches from waiting to ready.
- Terminates.
Dispatcher (operating system concepts)
Dispatcher module gives control of the CPU to the process selected by the short-term scheduler; this involves:
- switching context
- switching to user mode
- jumping to the proper location in the user program to restart that program
- Dispatch latency – time it takes for the dispatcher to stop one process and start another running.
Subscribe to:
Posts (Atom)
Featured post
10 Best Ways to Earn Money from Facebook
10 Best Ways to Earn Money from Facebook Facebook is a household name all over the world. The social networking platform has more than...
-
"Human-computer interaction (HCI) is the study of interaction between people (users) and computers. Interaction between users and co...
-
Examples of Sequence Diagram in UML Example of Library management System for sequence diagram Example of Booking System fo...
-
Here in this blog I will tell you what is software development life cycle,the phases of software development life cycle and Methods of SDL...