Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged process
7
votes
1
answer
1
GO Classes Test Series 2024 | Mock GATE | Test 14 | Question: 23
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 during the context switch: E1: The stack pointer ... atomic hardware instruction. The relative ordering of E1 and E2 can vary from one context switch to the other.
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...
GO Classes
524
views
GO Classes
asked
Feb 5
Operating System
goclasses2024-mockgate-14
operating-system
context-switch
process
1-mark
+
–
0
votes
0
answers
2
What is the difference between synchronous and asynchronous signals?
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 zero. Asynchronous are the one that ... exceptions? For example we have ZeroDivisionError or FileNotFoundError and all. Ref: Signal Handling from Galvin OS book
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...
tbhaxor
102
views
tbhaxor
asked
Feb 1
Operating System
operating-system
process
+
–
0
votes
0
answers
3
MadeEasy Test Series 2024 - In this question they have asked about the number of context switches that are happening. (Excluding the first and the last context switch). I am getting the answer as 5, according to the answer key it should be 6. I am not pre-empting process P when Q arrives as P has a higher priority than Q, in the solutions they have done the exact opposite, can anyone please tell me whether my approach is correct or I am missing onto something.
tishhaagrawal
445
views
tishhaagrawal
asked
Dec 4, 2023
Operating System
gate-preparation
operating-system
made-easy-test-series
process-scheduling
self-doubt
test-series
process
+
–
1
votes
1
answer
4
Made Easy Test Series
Rahhul A
450
views
Rahhul A
asked
Oct 1, 2023
Operating System
made-easy-test-series
operating-system
process-synchronization
process
2-marks
+
–
0
votes
2
answers
5
Operating System(Process)
A process executes the following segment of code: int main(){ fork(); fork() && fork(); } The number of new processes created is
A process executes the following segment of code: int main(){fork();fork() && fork();}The number of new processes created is
Sourin Kundu
411
views
Sourin Kundu
asked
Jan 24, 2023
Operating System
operating-system
process
+
–
3
votes
0
answers
6
Multi Level Feedback Queue(UNIX-SVR3)
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 Priority P1 2 0 60 P2 1. 1 60 P3 3. 2 60 Also prepare a gantt chart for the following..
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...
rdxrohit
607
views
rdxrohit
asked
Dec 31, 2022
Operating System
operating-system
process
multilevel
+
–
0
votes
0
answers
7
Best Open Video Playlist for Processes Topic | Operating Systems
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 playlist and add to GO classroom video lists. You ... standard ones are more likely to be selected as best. For the full list of selected videos please see here
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...
makhdoom ghaya
160
views
makhdoom ghaya
asked
Aug 20, 2022
Study Resources
missing-videos
go-classroom
free-videos
video-links
process
+
–
0
votes
3
answers
8
#fork #threads
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 the above program prints 'GATE' is_?
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...
jayadev
994
views
jayadev
asked
Feb 1, 2022
Operating System
threads
operating-system
process
+
–
1
votes
0
answers
9
Applied Mock Test
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 of all the processes can proceed in parallel. The absolute difference of CPU utilization (over a long period of time) using FCFS and Round Robin (time quantum 10ms) for this system is _____ %
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 ...
LRU
386
views
LRU
asked
Dec 14, 2021
Operating System
test-series
operating-system
cpu
process-scheduling
process
+
–
0
votes
1
answer
10
#threads
Why the operating system has the knowledge about kernel level threads but not about user level threads?
Why the operating system has the knowledge about kernel level threads but not about user level threads?
jayadev
441
views
jayadev
asked
Dec 7, 2021
Operating System
threads
operating-system
process
+
–
1
votes
1
answer
11
#threads
Does kernel level threads have separate PCB(process control block)?
Does kernel level threads have separate PCB(process control block)?
jayadev
386
views
jayadev
asked
Dec 6, 2021
Operating System
threads
operating-system
process
+
–
0
votes
1
answer
12
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 41 (Page No. 177)
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?
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?
admin
999
views
admin
asked
Oct 25, 2019
Operating System
tanenbaum
operating-system
process-and-threads
process
descriptive
+
–
0
votes
2
answers
13
Self Doubt Process State
For a process the termination state lies in which memory? Main or Secondary memory?
For a process the termination state lies in which memory? Main or Secondary memory?
shubhojit1412
384
views
shubhojit1412
asked
Jun 7, 2019
Operating System
process-state
process
+
–
0
votes
1
answer
14
Stallings Book Doubt-Process
Which part of the process image forms the logical address space that is used in paging?
Which part of the process image forms the logical address space that is used in paging?
aditi19
509
views
aditi19
asked
May 26, 2019
Operating System
operating-system
process
paging
virtual-memory
+
–
0
votes
3
answers
15
self doubt - process concepts
Consider we have a cpu whose processes are scheduled using premptive priority scheduling algorithm, suppose a process of higher priority than the currently running process arrives in the ready queue, according to the algorithm the running process must be prempted, who actually does this job of interrupting the running process?
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...
Saideepak Bejawada
957
views
Saideepak Bejawada
asked
Apr 9, 2019
Operating System
operating-system
process
process-scheduling
+
–
0
votes
0
answers
16
Galvin Edition 9 Exercise 3 Question 18 (Page No. 153)
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 communication b. Automatic and explicit buffering c. Send by copy and send by reference d. Fixed-sized and variable-sized messages
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...
akash.dinkar12
397
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
process
descriptive
+
–
0
votes
0
answers
17
Galvin Edition 9 Exercise 3 Question 17 (Page No. 153)
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 5 int nums[SIZE] = {0,1,2,3,4}; int main() { int i; pid t pid; pid = fork( ... (i = 0; i < SIZE; i++) printf("PARENT: %d ",nums[i]); /* LINE Y */ } return 0; }
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] = ...
akash.dinkar12
432
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
process
programming
+
–
0
votes
0
answers
18
Galvin Edition 9 Exercise 3 Question 16 (Page No. 153)
Consider the RPC mechanism. Describe the undesirable consequences that could arise from not enforcing either the “at most once” or “exactly once” semantic. Describe possible uses for a mechanism that has neither of these guarantees.
Consider the RPC mechanism. Describe the undesirable consequences that could arise from not enforcing either the “at most once” or “exactly once” semantic. Descri...
akash.dinkar12
417
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
process
descriptive
+
–
0
votes
0
answers
19
Galvin Edition 9 Exercise 3 Question 15 (Page No. 153)
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 ordinary pipes.
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...
akash.dinkar12
365
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
process
descriptive
+
–
2
votes
0
answers
20
Galvin Edition 9 Exercise 3 Question 14 (Page No. 152)
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.) #include <sys/types.h> #include <stdio.h> #include <unistd. ... pid); /* C */ printf("parent: pid1 = %d",pid1); /* D */ wait(NULL); } return 0; }
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...
akash.dinkar12
719
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
process
programming
+
–
0
votes
1
answer
21
Galvin Edition 9 Exercise 3 Question 13 (Page No. 152)
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 <unistd.h> int main() { pid t pid ... will wait for the child to complete */ wait(NULL); printf("Child Complete"); } return 0; }
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...
akash.dinkar12
3.6k
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
process
programming
+
–
0
votes
1
answer
22
Galvin Edition 9 Exercise 3 Question 12 (Page No. 152)
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; i++) fork(); return 0; }
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; ...
akash.dinkar12
1.9k
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
process
programming
+
–
0
votes
0
answers
23
Galvin Edition 9 Exercise 3 Question 11 (Page No. 152)
Explain the role of the init process on UNIX and Linux systems in regard to process termination.
Explain the role of the init process on UNIX and Linux systems in regard to process termination.
akash.dinkar12
383
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
process
descriptive
+
–
1
votes
0
answers
24
Galvin Edition 9 Exercise 3 Question 10 (Page No. 151-152)
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 information about the ps command.The task manager ... the parent process ID, but the process monitor tool, available from technet.microsoft.com, provides a process-tree tool.
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...
akash.dinkar12
1.3k
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
process
descriptive
+
–
0
votes
1
answer
25
Galvin Edition 9 Exercise 3 Question 9 (Page No. 151)
Describe the actions taken by a kernel to context-switch between processes.
Describe the actions taken by a kernel to context-switch between processes.
akash.dinkar12
277
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
process
descriptive
+
–
0
votes
1
answer
26
Galvin Edition 9 Exercise 3 Question 8 (Page No. 151)
Describe the differences among short-term, medium-term, and long term scheduling.
Describe the differences among short-term, medium-term, and long term scheduling.
akash.dinkar12
464
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
process
descriptive
+
–
0
votes
0
answers
27
Galvin Edition 9 Exercise 3 Question 7 (Page No. 150)
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?
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?
akash.dinkar12
335
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
process
descriptive
+
–
0
votes
0
answers
28
Galvin Edition 9 Exercise 3 Question 6 (Page No. 150)
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 sent back to the client is lost due to a network problem? Describe the sequence of messages, and discuss whether “exactly once” is still preserved.
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...
akash.dinkar12
354
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
process
descriptive
+
–
0
votes
0
answers
29
Galvin Edition 9 Exercise 3 Question 5 (Page No. 150)
When a process creates a new process using the fork() operation, which of the following states is shared between the parent process and the child process ? a. Stack b. Heap c. Shared memory segments
When a process creates a new process using the fork() operation, which of the following states is shared between the parent process and the child process ?a. Stackb. Heap...
akash.dinkar12
230
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
process
descriptive
+
–
Page:
1
2
3
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register