Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
Recent questions tagged fork-system-call
2
votes
2
answers
1
GATE CSE 2023 | Question: 13
Which one or more of the following options guarantee that a computer system will transition from user mode to kernel mode? Function Call malloc Call Page Fault System Call
admin
asked
in
Operating System
Feb 15
by
admin
1.5k
views
gatecse-2023
operating-system
fork-system-call
multiple-selects
1-mark
0
votes
1
answer
2
Fork() | OS
int doWork(){ fork(); fork(); printf("Hello world!\n"); } int main() { doWork(); printf("Hello world!\n"); exit(0); }
abhinowKatore
asked
in
Operating System
Jan 13
by
abhinowKatore
383
views
fork-system-call
operating-system
1
vote
3
answers
3
Unacademy AIMT question on Fork()
Given the following piece of code : Main() { Int child = fork(); Int c = 5; if (child == 5) { C + = 5; } Else { Child = fork(); C + = 5; } } What are the different values of the variable c? First of all checking child == ... a pseudocode as some of the syntaxes are wrong. Also I am getting the answer as 10,10,10. Given answer is 20,10,15. Can someone please check?
Sunnidhya Roy
asked
in
Operating System
Dec 14, 2022
by
Sunnidhya Roy
407
views
operating-system
fork-system-call
programming-in-c
1
vote
0
answers
4
Fork System Call and Threads | OS | MSQ
MSQ Consider the following statements, which one of the following is/are TRUE In fork() system call, child process inherits all the open file descriptors of parent process In fork() system call, child process copies the code of the ... system call, child process shares the code of the parent process User level threads shares the code segment of the process
Souvik33
asked
in
Operating System
Nov 28, 2022
by
Souvik33
302
views
operating-system
fork-system-call
unix
process-and-threads
threads
multiple-selects
2
votes
1
answer
5
gateforum
h4kr
asked
in
Operating System
Nov 9, 2022
by
h4kr
131
views
gateforum-test-series
operating-system
fork-system-call
0
votes
1
answer
6
made easy test series
When a process create a child, which of the following is/are correct possibility/situation? A) Parent process can execute parallely with children. B) Parent process can wait until some or all of its children have terminated. C)Child process can only be the duplicate of parent process. D) Child process can only loaded with program other than parent program.
viral8702
asked
in
Operating System
Oct 12, 2022
by
viral8702
380
views
made-easy-test-series
fork-system-call
0
votes
2
answers
7
Operating System
On Solving manually I too getting 14 as answer. but on running more than 14 * are printed.
Overflow04
asked
in
Operating System
Aug 29, 2022
by
Overflow04
409
views
operating-system
ace-test-series
fork-system-call
0
votes
1
answer
8
justify the answer
how many child process will be created for the following code.how many hello and welcome will be printed #include <stdio.h> void main() { fork(); fork(); printf("Hello \n"); fork(); printf("welcome\n"); }
emlin
asked
in
Operating System
Jun 27, 2022
by
emlin
911
views
fork-system-call
1
vote
2
answers
9
Geeksforgeeks mock - 2022
Consider the following C program: #include <stdio.h> #include <stdlib.h> #include <unistd.h> int main (void) { pid_t pid; int x = 2; pid = fork ( ); if (pid = = 0); x = 8; fork( ); printf("%d", x); return 0; } Fork ( ) is a system call creates new ... the program is executed on the unix OS?[MSQ] (a) 8 2 2 8 (b) 8 8 2 2 (c) 2 8 8 2 (d) 2 2 8 8
o
asked
in
Operating System
Dec 19, 2021
by
o
960
views
operating-system
multiple-selects
fork-system-call
4
votes
8
answers
10
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 39 (Page No. 177)
Consider the following piece of C code: void main( ) { fork( ); fork( ); exit( ); } How many child processes are created upon execution of this program?
Lakshman Patel RJIT
asked
in
Operating System
Oct 25, 2019
by
Lakshman Patel RJIT
2.4k
views
tanenbaum
operating-system
process-and-threads
fork-system-call
descriptive
12
votes
4
answers
11
fork() using Tree structure
How many times ‘4’ will be printed ? int main() { if (fork() && (!fork())) { if (fork() || fork()) { fork(); } } printf("4 "); return 0; } How to approach these kind of questions using Tree structure ??
Brij gopal Dixit
asked
in
Operating System
Jun 13, 2019
by
Brij gopal Dixit
5.4k
views
fork-system-call
1
vote
2
answers
12
Virtual Gate Test Series: Operating System - Fork-Join Concurrency Structure
Consider the code fragment: count = 3; S1; Fork L1; L1: S3; S2; goto L3; S4; Fork L2; L2: S6; goto L3; S5; L3: join count S7 Which one of the following represents correct precedence graph of the above code fragment? the answer is given but I’m getting where am I wrong?
aditi19
asked
in
Operating System
Jun 12, 2019
by
aditi19
3.2k
views
operating-system
precedence-graph
fork-system-call
concurrency
virtual-gate-test-series
0
votes
1
answer
13
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.
akash.dinkar12
asked
in
Operating System
Mar 19, 2019
by
akash.dinkar12
706
views
galvin
operating-system
process
programming
fork-system-call
Page:
1
2
3
4
next »
Subscribe to GATE CSE 2023 Test Series
Subscribe to GO Classes for GATE CSE 2023
Quick search syntax
tags
tag:apple
author
user:martin
title
title:apple
content
content:apple
exclude
-tag:apple
force match
+apple
views
views:100
score
score:10
answers
answers:2
is accepted
isaccepted:true
is closed
isclosed:true
Recent Posts
Central Pollution Control Board CPCB Various Post Recruitment 2023
MP Rajya Sahkari Apex Bank Various Post Recruitment 2023
NITIE MUMBAI throgh GATE
PGCIL recruitment 2023 – Apply Online For 138 Posts through GATE
Admission guidance for GATE CSE 2023
Subjects
All categories
General Aptitude
(2.6k)
Engineering Mathematics
(9.4k)
Digital Logic
(3.3k)
Programming and DS
(5.9k)
Algorithms
(4.6k)
Theory of Computation
(6.7k)
Compiler Design
(2.3k)
Operating System
(5.0k)
Databases
(4.6k)
CO and Architecture
(3.8k)
Computer Networks
(4.7k)
Non GATE
(1.3k)
Others
(2.5k)
Admissions
(655)
Exam Queries
(848)
Tier 1 Placement Questions
(17)
Job Queries
(77)
Projects
(9)
Unknown Category
(866)
Recent questions tagged fork-system-call
Recent Blog Comments
Please upload updated previous year question...
The last hardcopy that was made was for GATE 2022...
overall only 3 post .no post for gen male
for gen GS in the range of 720-750 approx.
can we get 2023 hark copy from amazon?