Recent questions tagged process-scheduling

3 3 votes
2 2 answers
2.5k
2.5k views
Between Round robin and shortest job first CPU scheduling algorithm which one has better average turnaround time?
5 5 votes
1 answers 1 answer
1.7k
1.7k views
Consider four processes with a burst time of $10, 20, 30, 40$ all process arrived at time $0$. Each process spends first $10$% of its execution time doing $i/0$, next $40...
13 13 votes
11 answers 11 answers
18.7k
18.7k views
Suppose two jobs, each of which needs $10$ minutes of CPU time, start simultaneously. Assume $50\%$ I/O wait time. How long will it take for both to complete, if they run...
2 2 votes
4 4 answers
4.0k
4.0k views
When ever a process is going running to blocked state its get pre-empted right ??so this is also a preemptive scheduling ??
6 6 votes
2 answers 2 answers
12.2k
12.2k views
Which of the following Algorithm favour CPU bound Bound process ?1) RR  2) FCFS  3) Multilevel feedback queueoption are : a)  1 onlyb) 2 onlyc) 1 and 2 onlyd) 1 and 3 onl...
0 0 votes
3 3 answers
1.9k
1.9k views
Consider all the processes are arriving at large time intervals.Let $t$ be the time interval between two processes $p_i$ and $p_{i+1}$ for any $i$ and service time of $p_...
0 0 votes
1 1 answer
686
686 views
10 10 votes
4 answers 4 answers
25.5k
25.5k views
Which of the following process scheduling algorithm may lead to starvation (1)SJF(2)SRTF(3)Priority(without preemption)(4)Priority(with preemption)a)1,2,3             b)1...
65 65 votes
10 answers 10 answers
25.0k
25.0k views
In a computer system where the ‘best-fit’ algorithm is used for allocating ‘jobs’ to ‘memory partitions’, the following situation was encountered:$$\begin{array}{|l|l|} \...
67 67 votes
8 answers 8 answers
33.3k
33.3k views
For the processes listed in the following table, which of the following scheduling schemes will give the lowest average turnaround time?$$\small \begin{array}{|c|c|c|} \h...
54 54 votes
7 answers 7 answers
40.7k
40.7k views
The maximum number of processes that can be in $\textit{Ready}$ state for a computer system with $n$ CPUs is :$n$$n^2$$2^n$Independent of $n$
180 180 votes
17 answers 17 answers
66.1k
66.1k views
Consider a uniprocessor system executing three tasks $T_{1}, T_{2}$ and $T_{3}$ each of which is composed of an infinite sequence of jobs (or instances) which arrive peri...
2 2 votes
2 answers 2 answers
3.4k
3.4k views
Q1)An OS contains 10 identical processes that were initiated at the same time. Each process contains 15 identical requests, and each request consumes 20msec of CPU time. ...
32 32 votes
3 answers 3 answers
9.2k
9.2k views
We wish to schedule three processes $P1$, $P2$ and $P3$ on a uniprocessor system. The priorities, CPU time requirements and arrival times of the processes are as shown be...
47 47 votes
7 answers 7 answers
21.9k
21.9k views
The arrival time, priority, and duration of the CPU and I/O bursts for each of three processes $P_1, P_2 $ and $P_3$ are given in the table below. Each process has a CPU ...
56 56 votes
4 answers 4 answers
17.0k
17.0k views
In the working-set strategy, which of the following is done by the operating system to prevent thrashing?It initiates another process if there are enough extra frames.It ...
87 87 votes
7 answers 7 answers
22.7k
22.7k views
Consider $n$ jobs $J_1, J_2 \dots J_n$ such that job $J_i$ has execution time $t_i$ and a non-negative integer weight $w_i$. The weighted mean completion time of the jobs...
34 34 votes
4 answers 4 answers
9.2k
9.2k views
If the time-slice used in the round-robin scheduling policy is more than the maximum time required to execute any process, then the policy willdegenerate to shortest job ...
33 33 votes
4 answers 4 answers
15.2k
15.2k views
Four jobs to be executed on a single processor system arrive at time $0$ in the order $A, B, C, D$. Their burst CPU time requirements are $4, 1, 8, 1$ time units respecti...
67 67 votes
7 answers 7 answers
27.0k
27.0k views
The sequence __________ is an optimal non-preemptive scheduling sequence for the following jobs which leaves the CPU idle for ________ unit(s) of time.$$\small \begin{arr...
52 52 votes
5 answers 5 answers
20.7k
20.7k views
Which scheduling policy is most suitable for a time shared operating system?Shortest Job FirstRound RobinFirst Come First ServeElevator
42 42 votes
4 answers 4 answers
18.9k
18.9k views
Assume that the following jobs are to be executed on a single processor system$$\begin{array}{|c|c|} \hline \textbf{Job Id} & \textbf{CPU Burst Time} \\\hline \text{p} ...
62 62 votes
4 answers 4 answers
30.4k
30.4k views
Which of the following statements are true?Shortest remaining time first scheduling may cause starvationPreemptive scheduling may cause starvationRound robin is better th...
41 41 votes
5 answers 5 answers
20.3k
20.3k views
Consider the following table of arrival time and burst time for three processes $P0, P1$ and $P2.$$$\small \begin{array}{|c|c|c|} \hline \textbf{Process} & \textbf{Arriva...
33 33 votes
4 answers 4 answers
15.4k
15.4k views
An operating system uses shortest remaining time first scheduling algorithm for pre-emptive scheduling of processes. Consider the following set of processes with their ar...
74 74 votes
6 answers 6 answers
23.5k
23.5k views
Three processes $A$, $B$ and $C$ each execute a loop of $100$ iterations. In each iteration of the loop, a process performs a single computation that requires $t_c$ CPU m...
91 91 votes
11 answers 11 answers
53.3k
53.3k views
Consider three processes, all arriving at time zero, with total execution time of $10$, $20$ and $30$ units, respectively. Each process spends the first $20\%$ of executi...
73 73 votes
9 answers 9 answers
40.7k
40.7k views
Consider three processes (process id $0$, $1$, $2$ respectively) with compute time bursts $2$, $4$ and $8$ time units. All processes arrive at time zero. Consider the lon...
38 38 votes
4 answers 4 answers
13.5k
13.5k views
Consider the following set of processes that need to be scheduled on a single CPU. All the times are given in milliseconds.$$\small \begin{array}{|c|c|c|} \hline \textbf{...