Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged process
0
votes
0
answers
31
Galvin Edition 9 Exercise 3 Question 4 (Page No. 150)
The Sun UltraSPARC processor has multiple register sets. Describe what happens when a context switch occurs if the new context is already loaded into one of the register sets. What happens if the new context is in memory rather than in a register set and all the register sets are in use ?
The Sun UltraSPARC processor has multiple register sets. Describe what happens when a context switch occurs if the new context is already loaded into one of the register ...
akash.dinkar12
254
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
process
descriptive
+
–
0
votes
0
answers
32
Galvin Edition 9 Exercise 3 Question 3 (Page No. 150)
Original versions of Apple’s mobile iOS operating system provided no means of concurrent processing. Discuss three major complications that concurrent processing adds to an operating system.
Original versions of Apple’s mobile iOS operating system provided no means of concurrent processing. Discuss three major complications that concurrent processing adds t...
akash.dinkar12
435
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
process
descriptive
+
–
1
votes
1
answer
33
Galvin Edition 9 Exercise 3 Question 2 (Page No. 149-150)
Including the initial parent process, how many processes are created by the following program. #include <stdio.h> #include <unistd.h> int main() { fork(); fork(); fork(); return 0; }
Including the initial parent process, how many processes are created by the following program.#include <stdio.h>#include <unistd.h>int main(){fork(); fork(); ...
akash.dinkar12
446
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
process
programming
+
–
1
votes
1
answer
34
Galvin Edition 9 Exercise 3 Question 1 (Page No. 149)
#include <sys/types.h> #include <stdio.h> #include <unistd.h> int value = 5; int main() { pid t pid; pid = fork(); if (pid == 0) { /* child process */ value += 15; return 0; } else if (pid > 0) { /* ... ;PARENT: value = %d",value); /* LINE A */ return 0; } } Explain what the output will be at LINE A in this program.
#include <sys/types.h #include <stdio.h #include <unistd.h int value = 5; int main() { pid t pid; pid = fork(); if (pid == 0) { /* child process */ value += 15; return 0;...
akash.dinkar12
952
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
process
programming
fork-system-call
+
–
0
votes
1
answer
35
process state in operating system
Consider a process P1 that is executing on a Linux-like OS on a single core system. When P1 is executing, a disk interrupt occurs, causing P1 to go to kernel mode to service that interrupt. The interrupt delivers all the disk blocks that unblock a ... user mode of P1. At this point in time, what are the states (ready/running/blocked) of processes P1 and P2 ?
Consider a process P1 that is executing on a Linux-like OS on a single core system. When P1 is executing, a disk interrupt occurs, causing P1 to go to kernel mode to serv...
dd
1.0k
views
dd
asked
Jan 13, 2019
Operating System
operating-system
process
+
–
0
votes
0
answers
36
Self doubt
In round robin scheduling, which process gets the chance first if a process comes to ready state from running(i.e time quantom getting over) and another from new to ready(i.e due to same arrival time) ? Is there a convention or will it be specified in the question?
In round robin scheduling, which process gets the chance first if a process comes to ready state from running(i.e time quantom getting over) and another from new to ready...
subho16
394
views
subho16
asked
Jan 4, 2019
Operating System
operating-system
round-robin-scheduling
process-scheduling
process
+
–
0
votes
0
answers
37
synchronization
test and set is used to implement Lock / Unlock to avoid BUSSY WAITING. above statement is true or false?
test and set is used to implement Lock / Unlock to avoid BUSSY WAITING.above statement is true or false?
Rahul_Rathod_
761
views
Rahul_Rathod_
asked
Dec 21, 2018
Operating System
process-synchronization
operating-system
process
+
–
0
votes
1
answer
38
doubt
is this preemptive or non-preemptive?
is this preemptive or non-preemptive?
pps121
508
views
pps121
asked
Dec 15, 2018
Operating System
operating-system
process
+
–
1
votes
2
answers
39
synchronization
does it guarantee mutual exclusion and deadlock prevention?
does it guarantee mutual exclusion and deadlock prevention?
Rahul_Rathod_
917
views
Rahul_Rathod_
asked
Dec 12, 2018
Operating System
process-synchronization
operating-system
critical-section
process
deadlock-prevention-avoidance-detection
+
–
0
votes
1
answer
40
MadeEasy Test Series: Operating System - Prcocess
Consider the following statements: S1: Long term scheduler sends the process from ready state to running state. S2: Medium term scheduler controls the degree of multiprogramming. which of the following is correct? Only S1 Only S2 Both S1 & S2 Neither S1 & S2
Consider the following statements:S1: Long term scheduler sends the process from ready state to running state.S2: Medium term scheduler controls the degree of multiprogra...
balraj_allam
3.2k
views
balraj_allam
asked
Dec 9, 2018
Operating System
made-easy-test-series
operating-system
process
+
–
0
votes
1
answer
41
Abraham Silberasch Galvin operating system Book chapter 5 process synchronization
The first known correct software solution to the critical-section problem for two processes was developed by Dekker. The two processes, P0 and P1, share the following variables: boolean flag[2]; /* initially false */ int turn; ... critical section */ turn = j; flag[i] = false; /* remainder section */ } while (true);
The first known correct software solution to the critical-section problemfor two processes was developed by Dekker. The two processes, P0 andP1, share the following varia...
Chetan Warke
3.1k
views
Chetan Warke
asked
Nov 17, 2018
Operating System
operating-system
process-synchronization
process
semaphore
+
–
0
votes
0
answers
42
Process States-Doubt
when a process is in wait/blocked state it is in MM/disk/buffer?
when a process is in wait/blocked state it is in MM/disk/buffer?
aditi19
470
views
aditi19
asked
Oct 31, 2018
Operating System
operating-system
process
+
–
0
votes
1
answer
43
Process state
A printf or malloc takes the process to what state? Running Ready Suspended Terminated
A printf or malloc takes the process to what state?RunningReadySuspendedTerminated
Balaji Jegan
396
views
Balaji Jegan
asked
Oct 16, 2018
Operating System
operating-system
process
+
–
0
votes
1
answer
44
OS doubt
Explain how.. Context Switch overhead is less in thread based systems compared to process based systems.
Explain how..Context Switch overhead is less in thread based systems compared to process based systems.
Naveen Kumar 3
310
views
Naveen Kumar 3
asked
Sep 23, 2018
Operating System
process
threads
operating-system
+
–
0
votes
2
answers
45
Doubt on OS
If an Interrupt occurs during process executing in CPU then the process will move RUN to READY or RUN to WAIT/BLOCK ?
If an Interrupt occurs during process executing in CPU then the process will move RUN to READY or RUN to WAIT/BLOCK ?
mrinmoyh
479
views
mrinmoyh
asked
Aug 31, 2018
Operating System
operating-system
process
+
–
0
votes
1
answer
46
Operating System
What is the difference between a job,a process and a thread?
What is the difference between a job,a process and a thread?
Devshree Dubey
352
views
Devshree Dubey
asked
Aug 20, 2018
Operating System
process
operating-system
+
–
0
votes
2
answers
47
Process Doubt
How to decide which job is I/O bound or CPU bound?
How to decide which job is I/O bound or CPU bound?
Devshree Dubey
240
views
Devshree Dubey
asked
Aug 19, 2018
Operating System
operating-system
process
+
–
0
votes
2
answers
48
Operating System
Which data structure is used to implement the Process Control Block?
Which data structure is used to implement the Process Control Block?
Devshree Dubey
857
views
Devshree Dubey
asked
Aug 19, 2018
Operating System
operating-system
process
+
–
0
votes
2
answers
49
Operatin system Galvin
Why shortest job first is not practically implementable. There are two possible answers 1. Starvation 2. Burst time of processes cannot be known ahead. So i am not getting the meaning of 2nd answer.
Why shortest job first is not practically implementable. There are two possible answers1. Starvation2. Burst time of processes cannot be known ahead.So i am not getting t...
kapilj123
457
views
kapilj123
asked
Jul 22, 2018
Operating System
process-synchronization
operating-system
process
+
–
0
votes
1
answer
50
Practice Question
How to solve this problem?
How to solve this problem?
Bhagyashree Mukherje
421
views
Bhagyashree Mukherje
asked
Jul 19, 2018
Operating System
process
resource-allocation
operating-system
+
–
1
votes
1
answer
51
Threads
According to me Answer is C, because Multithreading i.e. User application threads cannot use different processors because processor see all the thread of user process as part of one process so it wont execute on Different Processors. Am i right ? But answer given is (A)
According to me Answer is C, because Multithreading i.e. User application threads cannot use different processors because processor see all the thread of user process as ...
Na462
1.7k
views
Na462
asked
Jul 12, 2018
Operating System
threads
operating-system
process
+
–
3
votes
1
answer
52
GALVIN(NINTH INDIAN EDITION)-CHAPTER 1(SECTION 1.5.1)
The hardware allows privileged instruction to be executed only in kernel mode. if an attempt to execute a privileged instruction in user mode, the hardware does not execute the instruction but rather treat it as illegal and traps it to ... privileged instruction. how can it be then executed if the system is not in kernel mode? please clarify...
The hardware allows privileged instruction to be executed only in kernel mode. if an attempt to execute a privileged instruction in user mode, the hardware does not execu...
aambazinga
1.9k
views
aambazinga
asked
Jul 3, 2018
Operating System
operating-system
process
+
–
0
votes
1
answer
53
OS Kernel
Please explain each point. My assumptions are; 1.kernel must save the register values.It should be FALSE as it can be the case if the process is terminated.Thus, no need to save. 2.kernel must close the files. Explain this point in both the cases(the ... has not dealt with registers earlier.Thus, no need to restore. 4.kernel must save the content of memory onto disk. Explain this too.
Please explain each point.My assumptions are;1.kernel must save the register values.It should be FALSE as it can be the case if the process is terminated.Thus, no need to...
MayankSharma
1.3k
views
MayankSharma
asked
Jun 21, 2018
Operating System
operating-system
kernel
process
+
–
1
votes
0
answers
54
Process (fork() and condition operators)
#include <stdio.h> #include <unistd.h> int main() { fork(); fork() && fork() || fork(); fork(); printf("forked\n"); return 0; } //How this works specially the level 2 fork() // with && ||
#include <stdio.h>#include <unistd.h>int main(){fork();fork() && fork() || fork();fork();printf("forked\n");return 0;} //How this works specially the level 2 fork() // wi...
Nandkishor Nangre
914
views
Nandkishor Nangre
asked
Mar 22, 2018
Operating System
operating-system
process
+
–
0
votes
0
answers
55
Operating System – Processes sanfoundry.com
If a system allows execution of only one process at a time, it is called as (1) Uni-processing Systems (2) Uni-tasking Systems (3) Uni-programming Systems Acc to me, ans is Uni-programming but answer given is Uni- ... -programing not uni-processing. Rather if ques would have mentioned about single processor then i think answer would be uni-processor.
If a system allows execution of only one process at a time, it is called as(1)Uni-processing Systems(2)Uni-tasking Systems(3)Uni-programming SystemsAcc to me, ans is Uni-...
stanchion
1.0k
views
stanchion
asked
Dec 18, 2017
Operating System
operating-system
uni-processing
uni-programming
process
+
–
1
votes
4
answers
56
Threads
The primary difference between process and thread ? (A) The number of I/O requests mode. (B) The amount of overhead associated with creation and context switching . (C) The amount of memory allocation (D) The average number of instructions executed
The primary difference between process and thread ?(A) The number of I/O requests mode.(B) The amount of overhead associated with creation and context switching .(C) The ...
ankitgupta.1729
1.9k
views
ankitgupta.1729
asked
Dec 14, 2017
Operating System
threads
operating-system
process
+
–
1
votes
2
answers
57
OS:- Threads
Why threads have less context than process? Context means various attributes that we store in the PCB,so the attributes like state,property,PC,etc.. should be there in both process and thread.So,how thread have less context than process?
Why threads have less context than process? Context means various attributes that we store in the PCB,so the attributes like state,property,PC,etc.. should be there in b...
rahul sharma 5
691
views
rahul sharma 5
asked
Dec 6, 2017
Operating System
operating-system
threads
process
+
–
0
votes
0
answers
58
Threads
Threads of a process share (A) global variables but not heap (B) heap but not global variables (C) neither global variables nor heap (D) both heap and global variables My doubt is thread does share code section , data section and files. So global variables it does share bt does it also share heap section?
Threads of a process share(A) global variables but not heap(B) heap but not global variables(C) neither global variables nor heap(D) both heap and global variablesMy doub...
Na462
862
views
Na462
asked
Oct 29, 2017
Operating System
threads
operating-system
process
+
–
1
votes
1
answer
59
Self doubt
If inefficiency of scheduling algorithm is $\frac{Burst Time wasted}{Total Burst Time} X 100$ Why do we have to multiply with 100?
If inefficiency of scheduling algorithm is $\frac{Burst Time wasted}{Total Burst Time} X 100$Why do we have to multiply with 100?
Syedarshadali
428
views
Syedarshadali
asked
Oct 22, 2017
Operating System
operating-system
scheduling
process-scheduling
process
+
–
2
votes
1
answer
60
Question
On a system with N CPU, what is the maximum number of processes that can be in running state ? A) N process B)Depend on the processes in ready state C) Can't say
On a system with N CPU, what is the maximum number of processes that can be in running state ?A) N processB)Depend on the processes in ready stateC) Can't say
Shivam Chauhan
723
views
Shivam Chauhan
asked
Oct 19, 2017
Operating System
operating-system
process
+
–
Page:
« prev
1
2
3
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register