Tutorial 4
Tutorial 4
TRUE/FALSE QUESTIONS:
T F 8) Termination of a process does not terminate all threads within that process.
T F 9) If a process is swapped out, all of its threads are necessarily swapped out
because they all share the address space of the process.
T F 11) Any alteration of a resource by one thread affects the environment of the
other threads in the same process.
T F 12) In a pure ULT facility, all of the work of thread management is done by
the application, and the kernel is not aware of the existence of threads.
T F 13) As a default, the kernel dispatcher uses the policy of hard affinity in
assigning threads to processors.
1) The traditional approach of a single thread of execution per process, in which the concept of
a thread is not recognized, is referred to as a __________ .
A) task B) resource
2) The idea of having a many-to-many relationship between threads and processes has been
explored in the experimental operating system _________ .
A) VISTA B) TRIX
C) SOLARIS D) LEOPARD
A) strand B) process
C) string D) trace
4) The principal disadvantage of the _________ approach is that the transfer of control from one
thread to another within the same process requires a mode switch to the kernel.
A) KLT B) LWP
C) VAX D) ULT
A) TRIX B) Windows
C) LINUX D) Solaris
6) A _________ is a single execution path with an execution stack, processor state, and scheduling
information.
A) domain B) strand
C) thread D) message
7) __________ are characterized by the presence of many single-threaded processes.
A) port B) process
C) token D) thread
A) task B) process
C) thread D) token
A) Kernel B) KLT
A) four B) three
C) two D) one
12) A thread enters the _________ state, after waiting, if it is ready to run but the
resources are not available.
A) Terminated B) Standby
C) Transition D) Waiting
13) The _________ are the fundamental entities that can be scheduled and dispatched
to run on one of the system processors.
C) LWPs D) ULTs
A) ZOMBIE B) FREE
C) STOP D) SLEEP
15) The blocked state in which the process is waiting for an event, such as the end of
an I/O operation, the availability of a resource, or a signal from another process,
is the _________ state.
C) Stopped D) Interruptible
1) The __________ is the collection of program, data, stack, and attributes defined in
the process control block.
3) The key states for a thread are: Running, _________, and Blocked.
4) There are four basic thread operations associated with a change in thread state:
Block, Unblock, Finish, and _________ .
5) There are two broad categories of thread implementation: user-level threads (ULTs) and ________.
7) A __________ is a static entity, consisting of an address space and ports through which
messages may be sent and received.
8) Windows makes use of two types of process-related objects: processes and _________ .
9) The __________ Windows Process Object Attribute describes who created an object,
who can gain access to or use the object, and who is denied access to the object.
10) The six states of a Windows thread are: Ready, Standby, Running, Waiting, Transition,
and _________ .
11) Most operating systems contain two fundamental forms of concurrent activity:
processes and _________ .
13) The Clouds operating system implements the concept of a thread as primarily an
entity that can move among address spaces which represents the __________
Thread-to-Process relationship.
14) It is necessary to __________ the activities of various threads so they do not interfere
with each other or corrupt data structures.