edited by
2,558 views
3 votes
3 votes

Match the following for UNIX system calls :

$\begin{array}{clcl}  &\textbf{List-I} && \textbf{List-II} \\ \text{(a)} & \text{exec} & \text{(i)} & \text{Creates new process} \\ \text{(b)} & \text{brk} & \text{(ii)} & \text{Invokes another program overlaying memory} \\&&& \text{space with a copy of an executable file.}\\ \text{(c)} & \text{wait} & \text{(iii)} & \text{To increase or decrease the size of data region} \\ \text{(d)} & \text{fork} & \text{(iv)} & \text{A process synchronizes with termination of} \\ &&&\text{child process}\\ \end{array}$

$\textbf{Codes :}$

  1. $\text{(a)-(ii), (b)-(iii), (c)-(iv), (d)-(i)}$
  2. $\text{(a)-(iii), (b)-(ii), (c)-(iv), (d)-(i)}$
  3. $\text{(a)-(iv), (b)-(iii), (c)-(ii), (d)-(i)}$
  4. $\text{(a)-(iv), (b)-(iii), (c)-(i), (d)-(ii)}$
edited by

1 Answer

Best answer
1 votes
1 votes
accepted
 

Ans  should be A

 

exec replaces the current program in the current process, without forking a new process.

brk() and sbrk() change the location of the program break, which defines the end of the process's data segment.

The parent process may then issue a wait system call, which suspends the execution of the parent process while the child executes. When the child process terminates, it returns an exit status to the operating system, which is then returned to the waiting parent process. The parent process then resumes execution.

fork --Creates new process

selected by
Answer:

Related questions

2 votes
2 votes
1 answer
1
go_editor asked Aug 1, 2016
2,767 views
A unix file may be of the typeRegular fileDirectory fileDevice fileAny one of the above
4 votes
4 votes
2 answers
2
go_editor asked Aug 1, 2016
3,840 views
In _____ allocation method for disk block allocation in a file system, insertion and deletion of blocks in a file is easyIndexLinkedContiguousBit Map
2 votes
2 votes
2 answers
3
go_editor asked Aug 1, 2016
3,534 views
Dining Philosopher's problem is aProducer - consumer problemClassical IPC problemStarvation problemSynchronization primitive