Thread Multichoice Question
Thread Multichoice Question
a) program counter
b) stack
c) both (a) and (b)
d) none of the mentioned
View Answer
Answer:c
Explanation:None.
2. A process can be
a) single threaded
b) multithreaded
c) both (a) and (b)
d) none of the mentioned
View Answer
Answer:c
Explanation:None.
3. If one thread opens a file with read privileges then
a) other threads in the another process can also read from that file
b) other threads in the same process can also read from that file
c) any other thread can not read from that file
d) all of the mentioned
View Answer
Answer:b
Explanation:None.
4. The time required to create a new thread in an existing process is
a) greater than the time required to create a new process
c) less than the time required to create a new process
c) equal to the time required to create a new process
d) none of the mentioned
View Answer
Answer:b
Explanation:None.
5. When the event for which a thread is blocked occurs,
a) thread moves to the ready queue
b) thread remains blocked
c) thread completes
d) a new thread is provided
View Answer
Answer:a
Explanation:None.
6. The jacketing technique is used to
a) convert a blocking system call into nonblocking system call
b) create a new thread
c) communicate between threads
d) terminate a thread
View Answer
Answer:a
Explanation:None.
7. Termination of the process terminates
a) first thread of the process
b) first two threads of the process
c) all threads within the process
d) no thread within the process
View Answer
Answer:c
Explanation:None.
8. Which one of the following is not a valid state of a thread?
a) running
b) parsing
c) ready
d) blocked
View Answer
Answer:b
Explanation:None.
9. The register context and stacks of a thread are deallocated when the thread
a) terminates
b) blocks
c) unblocks
d) spawns
View Answer
Answer:a
Explanation:None.
10. Thread synchronization is required because
a) all threads of a process share the same address space
b) all threads of a process share the same global variables
c) all threads of a process can share the same files
d) all of the mentioned
View Answer
Answer:d
1) A thread is also called :
a) Light Weight Process(LWP)
b) Heavy Weight Process(HWP)
c) Process
d) None of these
View Answer
Answer: a
Explanation: None.
2) A thread shares its resources(like data section, code section, open files, si
gnals) with :
a) other process similar to the one that the thread belongs to
b) other threads that belong to similar processes
c) other threads that belong to the same process
d) All of these
View Answer
Answer: c
Explanation: None.
3) A heavy weight process :
a) has multiple threads of execution
b) has a single thread of execution
c) can have multiple or a single thread for execution
d) None of these
View Answer
Answer: b
Explanation: None.
4) A process having multiple threads of control implies :
a) it can do more than one task at a time
c) kernel threads are easier to manage as well as create then user threads
d) None of these
View Answer
Answer: b
Explanation: None.
11) If a kernel thread performs a blocking system call, ____________________.
a) the kernel can schedule another thread in the application for execution.
b) the kernel cannot schedule another thread in the same application for executi
on.
c) the kernel must schedule another thread of a different application for execut
ion.
d) the kernel must schedule another thread of the same application on a differen
t processor.
View Answer
Answer: a
Explanation: None.
12) Which of the following is FALSE ? (GATE 2007)
a) Context switch time is longer for kernel level threads than for user level th
reads
b) User level threads do not need any hardware support
c) Related kernel level threads can be scheduled on different processors in a mu
ltiprocessor system
d) Blocking one kernel level thread blocks all other related threads
View Answer
Answer: d
Explanation: None