Sail E0 Webinar

MCQs

Total Questions : 39 | Page 1 of 4 pages
Question 1. Which one of the following is not shared by threads?
  1.    program counter
  2.    stack
  3.    both (a) and (b)
  4.    none of the mentioned
 Discuss Question
Answer: Option C. -> both (a) and (b)


None.


Question 2. The time required to create a new thread in an existing process is:
  1.    greater than the time required to create a new process
  2.    less than the time required to create a new process
  3.    equal to the time required to create a new process
  4.    none of the mentioned
 Discuss Question
Answer: Option B. -> less than the time required to create a new process


None.


Question 3. When the event for which a thread is blocked occurs,
  1.    thread moves to the ready queue
  2.    thread remains blocked
  3.    thread completes
  4.    a new thread is provided
 Discuss Question
Answer: Option A. -> thread moves to the ready queue


None.


Question 4. If one thread opens a file with read privileges then:
  1.    other threads in the another process can also read from that file
  2.    other threads in the same process can also read from that file
  3.    any other thread can not read from that file
  4.    all of the mentioned
 Discuss Question
Answer: Option B. -> other threads in the same process can also read from that file


None.


Question 5. A process can be:
  1.    single threaded
  2.    multithreaded
  3.    both (a) and (b)
  4.    none of the mentioned
 Discuss Question
Answer: Option C. -> both (a) and (b)


None.


Question 6. The jacketing technique is used to:
  1.    convert a blocking system call into nonblocking system call
  2.    create a new thread
  3.    communicate between threads
  4.    terminate a thread
 Discuss Question
Answer: Option A. -> convert a blocking system call into nonblocking system call


None.


Question 7. Which one of the following is not a valid state of a thread?
  1.    running
  2.    parsing
  3.    ready
  4.    blocked
 Discuss Question
Answer: Option B. -> parsing


None.


Question 8. The register context and stacks of a thread are deallocated when the thread:
  1.    terminated
  2.    blocks
  3.    unblocks
  4.    spawns
 Discuss Question
Answer: Option A. -> terminated


None.


Question 9. Termination of the process terminates:
  1.    first thread of the process
  2.    first two threads of the process
  3.    all threads within the process
  4.    no thread within the process
 Discuss Question
Answer: Option C. -> all threads within the process


None.


Question 10. Thread synchronization is required because:
  1.    all threads of a process share the same address space
  2.    all threads of a process share the same global variables
  3.    all threads of a process can share the same files
  4.    all of the mentioned
 Discuss Question
Answer: Option D. -> all of the mentioned


None.


Latest Videos

Latest Test Papers