What is a Deadlock?

In a multiprocessing environment, several processes compete for limited resources. A running process goes to waiting state when a resource is not available. The process could not change its state because some other process holds the resources. This is called a deadlock.Normal ConditionsThe operating system does not provide with deadlock prevention mechanism, the programmers must … Read more

Shortest Remaining Time First (SRTF)

The shortest job first (SJF) algorithm is preemptive or non-preemptive. You have learned about the non-preemptive SJF in the previous article. In this article, you will learn about preemptive SJF, also called the shortest remaining time first scheduling algorithm.Preemptive SJFA new process arrives at the ready queue while an old process is executing in the … Read more

Multilevel Queue

A multilevel queue is suitable when the processes are classified in groups. The multilevel queue scheduling algorithm partition the queue into several separate queues.Each of the processes are permanently assigned to one queue based on some property such as memory requirement, process priority, or process type.Then each queue has its own scheduling algorithm. For example, … Read more

Fork-Join Concept

The fork-join is a basic method of expressing concurrency within a computation. This is implemented in the UNIX operating system as system calls.ForkThe fork() call creates a new child process which runs concurrently with the parent. The child process is an exact copy of the parent except that it has a new process id. The … Read more

Concurrency Conditions

There are certain conditions for concurrency. Here we have listed them for you in this article.Conditions for Concurrency, the read set for , is the set of all variables whose values are referenced in statement during its execution., the write set for , is the set of all variables whose values are changed or written … Read more

Precedence Graph

A precedence graph is a directed acyclic graph whose nodes corresponds to individual statements.An edge from to , implies that statement can only be executed after statement has completed execution.In the above diagram following precedence relation is shown: S2 and S3 can be executed only after S1 has finished execution. S4 can be executed only … Read more

Priority Scheduling

A scheduling algorithms like round-robin treat all processes as same. But if we consider other information about a process, some process is more important than the other. This is the motivation behind priority scheduling.Each process carries a priority and process with the highest priority will be allocated CPU time. Since there is a chance that … Read more

Shortest-Job-First ( SJF )

The shortest job first algorithm associates the length of the next CPU burst with each process. The CPU time is assigned to a process with the smallest next CPU burst time.Gantt Chart for SJFIf there are two processes with the same next CPU burst time, then FCFS algorithm is applied to them. Consider an example, … Read more

Round Robin

The round-robin scheduling algorithm is suitable for time-sharing computers which are similar to FCFS. However, preemption is added to this algorithm to switch between processes.A time slice is defined called time quantum which is typically 10 to 100 milliseconds. The processes are allocated CPU time up to 1-time quantum. Then the process is preempted and … Read more

First Come, First Served (FCFS)

The first come first served (FCFS) is the simplest CPU-scheduling algorithm. The process which requests CPU first will be allocated CPU first and so on.The process enters the ready queue and its PCB is linked to the tail of the queue. When the CPU is free, it is assigned a new process from the head … Read more

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Exit mobile version