Threads Flashcards

1
Q

Which one of the following is not the reason to used thread in OS ?

A. Economy
B. Responsiveness
C. Resources sharing
D. Scalability
E. versatile

A

E. versatile

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

Which one of the following is the difference between thread and process?

a. Thread share CPU and only one thread active at a time
b. Threads within processes execute sequentially
c. Threads can create children
d. Threads are not independent of one another
e. none of mentioned

A

d. Threads are not independent of one another

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  1. A single thread of control allows the process to perform
    a. only one task at a time
    b. only two task at a time
    c. only exactly two tasks at a time
    d. multiple tasks at a time
    e. all of the mentioned
A

a. only one task at a time

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

Which one of the following is shared by threads?
a. stack
b. program counter
c. code section
d. register set
e. none of the mentioned

A

c. code section

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

Which one of the following is not the advantage of a User-level-thread?

a. A user-level threads package can be implemented on an OS that does not support threads
b. Fast and efficient
c. Simple management
d. there is a lack of coordination between threads and OS kernel
e. User-level thread does not requires modification to OS

A

d. there is a lack of coordination between threads and OS kernel

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

A process can be:

a. single threaded
b. multithreaded
c. two threaded
d. a & b
e. None of the mentioned

A

d. a & b

a. single threaded
b. multithreaded

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

Choose all types of Parallelism
a. Data Parallelism
b. Round Parallelism
c. Task Parallelism
d. Work Parallelism
e. None

A

a. Data Parallelism

c. Task Parallelism

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

which one of the following is not the multicore programming challenge ?

a. Balance
b. Data splitting
c. Data Dependency
d. Scalability
e. testing and debugging

A

d. Scalability

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

Which one of the following is the similarity between threads and process ?

a. All threads can access every address in the task
b. Threads are design to assist one other
c. Threads can create children
d. Threads are not independent of one another
e. none of the mentioned

A

c. Threads can create children

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

Which one of the following is not a multithreading model ?

a. Many-to-one
b. Many to many
c. one-to-one
d. two to one
e. none of the mentioned

A

d. two to one

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

Which one of the following is not shared by threads ?
a. data section
b. program counter
c. code section
d. OS resources
e. none of the mentioned

A

b. program counter

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

Which one of the following id the advantage of Kernel-level-threads ?

a. Simple representation
b. Kernel has full knowledge of all threads
c. Simple management
d. There is a lack of coordination between threads and OS kernel
e. The kernel-level threads are slow and inefficient

A

b. Kernel has full knowledge of all threads

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