Recent questions tagged process

585
views
1 answers
7 votes
Consider the context switch of a CPU from the context of process P1 to that of process P2.Consider the following two events in the chronological order of the events durin...
129
views
0 answers
0 votes
A process can receive two kinds of signals classified based on the source and reason.Synchronous are the one that are generated by illegal memory access or division by ze...
10.3k
views
1 answers
8 votes
Which one or more of the following need to be saved on a context switch from one thread $\text{(T1)}$ of a process to another thread $\text{(T2)}$ of the same process?Pag...
437
views
2 answers
0 votes
A process executes the following segment of code: int main(){fork();fork() && fork();}The number of new processes created is
631
views
0 answers
3 votes
Consider the following set of processes, and schedule them using the Multi-levelf eedback queue CPU scheduling algorithm as used in UNIX SVR3.P's CB AT Base P...
169
views
0 answers
0 votes
Please list out the best free available video playlist for Processes from Operating Systems as an answer here (only one playlist per answer). We'll then select the best p...
1.0k
views
3 answers
0 votes
Consider the following program segment of C-programming language:#include<stdio.h int main() { if (fork() || fork()) fork(); printf("GATE\n"); return 0; } Number of times...
391
views
0 answers
1 votes
A uniprocessor computer system has three processes, which alternate 20ms CPU bursts with 80ms I/O bursts. All the processes were created at nearly the same time. The I/O ...
456
views
1 answers
0 votes
Why the operating system has the knowledge about kernel level threads but not about user level threads?
396
views
1 answers
1 votes
Does kernel level threads have separate PCB(process control block)?
1.0k
views
1 answers
0 votes
Can a measure of whether a process is likely to be CPU bound or I/O bound be determined by analyzing source code? How can this be determined at run time?
401
views
2 answers
0 votes
For a process the termination state lies in which memory? Main or Secondary memory?
532
views
1 answers
0 votes
Which part of the process image forms the logical address space that is used in paging?
1.0k
views
3 answers
0 votes
Consider we have a cpu whose processes are scheduled using premptive priority scheduling algorithm, suppose a process of higher priority than the currently running proces...
415
views
0 answers
0 votes
What are the benefits and the disadvantages of each of the following ? Consider both the system level and the programmer level.a. Synchronous and asynchronous communicati...
456
views
0 answers
0 votes
Using the program shown below, explain what the output will be at lines X and Y.#include <sys/types.h>#include <stdio.h>#include <unistd.h>#define SIZE 5int nums[SIZE] = ...
426
views
0 answers
0 votes
Consider the RPC mechanism. Describe the undesirable consequences that could arise from not enforcing either the “at most once” or “exactly once” semantic. Descri...
380
views
0 answers
0 votes
Give an example of a situation in which ordinary pipes are more suitable than named pipes and an example of a situation in which named pipes are more suitable than ordina...
739
views
0 answers
2 votes
Using the program in Figure 3.34, identify the values of pid at lines A, B, C, and D. (Assume that the actual pids of the parent and child are 2600 and 2603, respectively...
3.7k
views
1 answers
0 votes
Explain the circumstances under which which the line of code marked printf("LINE J") in following program will be reached.#include <sys/types.h>#include <stdio.h>#include...
1.9k
views
1 answers
0 votes
Including the initial parent process, how many processes are created by the program shown below- #include <stdio.h>#include <unistd.h>int main(){int i;for (i = 0; i < 4; ...
395
views
0 answers
0 votes
Explain the role of the init process on UNIX and Linux systems in regard to process termination.
1.3k
views
0 answers
1 votes
Construct a process tree similar to Figure 3.8. To obtain process information for the UNIX or Linux system, use the command ps -ael.Use the command man ps to get more inf...
297
views
1 answers
0 votes
Describe the actions taken by a kernel to context-switch between processes.
513
views
1 answers
0 votes
Describe the differences among short-term, medium-term, and long term scheduling.
344
views
0 answers
0 votes
Assume that a distributed system is susceptible to server failure. What mechanisms would be required to guarantee the “exactly once” semantic for execution of RPCs?
362
views
0 answers
0 votes
Consider the “exactly once”semantic with respect to the RPC mechanism. Does the algorithm for implementing this semantic execute correctly even if the ACK message sen...