Question 160Asked in DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)

______ and ______ are used in conjunction for making a complete process subroutine.

______ and ______ are used in conjunction for making a complete process subroutine.
  1. Afork(), join()
  2. Bfork(), sleep()
  3. Csleep(), join()
  4. Djoin(), fork()
Show answerHide answer

Correct answer: (A) fork(), join()

Explanation

fork() splits a process into concurrent parts, and join() waits for them to finish and recombine. Together they form a complete concurrent subroutine; sleep() only suspends execution.

From DSSSB TGT Computer Science PYQ, 25 Jun 2023, Shift 2 (12:30 PM)

This is question 160 of DSSSB TGT Computer Science PYQ, 25 Jun 2023, Shift 2 (12:30 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.