Chap 4 Flashcards

1
Q

The OS performs a protection function to prevent unwanted interference between processes with respect to resources.

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Windows process design is driven by the need to provide support for a variety of OS environments.

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The unit of dispatching is usually referred to as a process or task.

A

FALSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In a multithreaded environment there are separate stacks for each thread, as well as a separate control block for each thread.

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

It takes less time to terminate a process than a thread.

A

FALSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

If there is an application or function that should be implemented as a set of related units of execution, it is far more efficient to do so as a collection of separate processes rather than a collection of threads.

A

FALSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

An example of an application that could make use of threads is a file server.

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Termination of a process does not terminate all threads within that process.

A

FALSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

If a process is swapped out, all of its threads are necessarily swapped out because they all share the address space of the process.

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

On a uniprocessor, multiprogramming does not enable the interleaving of multiple threads within multiple processes.

A

FALSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Any alteration of a resource by one thread affects the environment of the other threads in the same process.

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

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.

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

As a default, the kernel dispatcher uses the policy of hard affinity in assigning threads to processors.

A

FALSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Windows is an example of a kernel-level thread approach.

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

The potential performance benefits of a multicore organization depend on the ability to effectively exploit the parallel resources available to the application.

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

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

single-threaded approach

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

The idea of having a many-to-many relationship between threads and processes has been explored in the experimental operating system ___________.

A

TRIX

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

In a multithreaded environment, a _________ is defined as the unit of resource allocation and a unit of protection.

A

process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

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

kernel-level thread

20
Q

_________ is a good example of an OS using a combined user-level and kernel-level thread approach.

A

Solaris

21
Q

A _______ is a single execution path with an execution stack, processor state, and scheduling information.

A

thread

22
Q

_________ are characterized by the presence of many single-threaded processes.

A

multiprocess applications

23
Q

A _______ is a dispatchable unit of work that executes sequentially and is interruptible so that the processor can turn to another thread.

A

thread

24
Q

A _________ is an entity corresponding to a user job or application that owns resources such as memory and open files.

A

process

25
Q

A ________ is a user-created unit of execution within a process.

A

user-level thread

26
Q

A windows process must contain at least ________ thread(s) to execute.

A

1

27
Q

A thread enters the ________ state, after waiting, if it is ready to run but the resources are not available.

A

transition

28
Q

The _________ are the fundamental entities that can be scheduled and dispatched to run on one of the system processors.

A

Kernel threads

29
Q

The _______ state is when the thread has terminated.

A

ZOMBIE

30
Q

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.

A

interruptible

31
Q

The _______ is the collection of program, data, stack, and attributes defined in the process control block.

A

process image

32
Q

________ refers to the ability of an OS to support multiple, concurrent paths of execution within a single process.

A

Multithreading

33
Q

The key states for a thread are: Running, ________, and Blocked.

A

Ready

34
Q

There are four basic thread operations associated with a change in thread state: Block, Unblock, Finish, and ________.

A

Spawn

35
Q

There are two broad categories of thread implementation: user-level threads and ____________.

A

kernel-level threads

36
Q

A way to overcome the problem of blocking threads is to use a technology referred to as __________, which converts a blocking system call into a nonblocking system call.

A

jacketing

37
Q

A __________ is a static entity, consisting of an address space and ports through which messages may be sent and received.

A

domain

38
Q

Windows makes use of two types of process-related objects: processes and __________.

A

threads

39
Q

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.

A

security descriptor

40
Q

The six states of a Windows thread are: Ready, Standby, Running, Waiting, Transition, and ___________.

A

Terminated

41
Q

Most operating systems contain two fundamental forms of concurrent activity: processes and ____________.

A

interrupts

42
Q

A process or task in Linux is represented by a ___________ data structure.

A

task_struct

43
Q

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.

A

One-to-Many

44
Q

It is necessary to ___________ the activities of various threads so they do not interfere with each other or corrupt data structures.

A

synchronize

45
Q

The basic form of communication between processes or threads in a micro kernel operating system is ___________.

A

messages