Hardware Based Solution to Synchronization
Software-based solution like Peterson’s solution are not guaranteed to work on modern architecture. Hence, certain hardware based solution to
Software-based solution like Peterson’s solution are not guaranteed to work on modern architecture. Hence, certain hardware based solution to
Semaphore S is an integer variable which apart from initialization is accessed only through two standard atomic operations: wait() and signal().
When multiple process run in the system, they might at times want to access the same resource at same time. This situation can lead to unwanted results. To understand the issues – race condition and critical section problem, related with process synchronization lets consider a situation as below: Let: counter = 5 If I run […]
1. What are Threads in Operating System A thread is the smallest unit of execution which has its own thread ID, program counter, register set and stack. All the threads that belong to the same process share the code, data section and other resources like open files belonging to the process. So, remember thread is […]
Solve these Unsolved Questions on CPU Scheduling Algorithms to check out your understanding on the same Q1. Find the av. waiting time and av. turnaround time using:a) FCFSb) SJF(NP)c) SJF(P)d) RR (TQ=3) Process Burst Time Arrival Time P1 2 2 P2 6 5 P3 4 0 P4 7 0 P5 4 7 Q2. Find the […]
The most commonly used CPU scheduling algorithms are First Come First Serve (FCFS), Shortest Job First (SJF), Round Robin (RR) and Priority
The goal of the multi-programming system is to keep the CPU busy at all times. In a uni-processor system whenever the CPU becomes idle it is allocated to a new process. Which process will be allocated the CPU is decided by the short-term scheduler. CPU scheduling means to select the next process to be allocated […]
One can perform two operations on a process in OS:
1. Process creation
2. Process Termination
A process during its execution can create many new processes
A scheduler selects one out of many available processes for execution by the CPU. There are different types of schedulers in operating system – long, short
Have you ever executed a process? Have your process changed states? In this post, we going to cover the notion of a process and process states. We will understand: what is a process? How to convert your program into a process? What are the different states of a process? and Where all the information related […]