Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Q.1 a) Consider following set of processes. Calculate turnaround time, average t

ID: 3733827 • Letter: Q

Question

Q.1 a) Consider following set of processes. Calculate turnaround time, average turnaround time of these set of processes with the help of FCFS, SJF, and priority scheduling algorithms. Process Arrival Time CPU Cycle Priority 0 1 3 6 4 b) Describe process states with neat diagram of state transitions Q. 2 a) In computer system, when does a deadlock occur usually? b) What are the necessary conditions for Deadlock or Livelock? Q. 3 a) Discuss the advantages of Multiprocessing (Parallel) system. b) State in brief what are different types of Multiprocessing systems configurations? Q. 4 a) What does "process synchronization" mean? b) How WAIT and SIGNAL handle process synchronization?

Explanation / Answer

2 a) In computer system, when does a deadlock occur usually?

The deadlock usually occurs when two computers or system programs will try to shared the same resource for accessing and the result in the both programs breaks the function then deadlock takes place.

In other words we can also tell that the deadlock will occurs when two separate processes chases for the resources one another. That means if one resource is accessing the one program and another resources wants to access the same program then the user lock will be there by first resources. So in this way the deadlocks occurs usually.

2 b) What are the necessary conditions for deadlock or livelock?

The necessary conditions for deadlock are it occurs when

Resource1 let us assume he is accessing the Program which is called as program1 so p1 requests a lock for a data page held by P2 i.e program2 and the Program 2 will try to requests a lock for the data page held by p1 which we is known as Program 1.

So here we can conclude that the Both programs are waiting on the other in order to finish before they can move further or proceed.


The necessary conditions for livelock are it occurs when

There is a situation in which we are have alot of processes, i means to say for example two or more processes. Which are continuously change their states in order for changes in the other processes without any wanting or doing of any useful work.

so we can also state that the livelock is similar to the deadlock machanism. But the thing is the difference is processes and it can also letting the other resources to do the work. So it can be happen when are trying to processes or trying to avoid a deadlock.

Note: According to the chegg rules i have answered only one question. For remaining questions answers please post them in a saperate post. Thank you for your understandings.