You are on page 1of 26

ITE 250

OS quiz # 3
Instructions:
• Write T if the statement is true and F if the
statement is false.
• Strictly no Erasures!!! Erasures = 0 point
• Trust yourself do not trust the answer of your
seatmate.
READY???
1.

• clone() allows a child task


to share the address space
of the parent task.
2.

• TEB (thread environment


block) – includes pointer to
process to which thread
belongs and to KTHREAD,
in kernel space
3.

• ETHREAD (executive thread


block) – has scheduling and
synchronization info,
kernel-mode stack, pointer
to TEB, in kernel space
4.

• The register set, stacks, and


private storage area are
known as the context of
the thread.
5.

• The intermediate data


structure between user
and kernel threads is called
lightweight process.
6.

• Thread-local storage allows


each thread to have its
own copy of data.
7.

• If thread has cancellation


enabled, cancellation
remains pending until
thread disables it.
8.

• Thread to be canceled is
called target thread.
9.

• Deferred cancellation
allows the target thread to
periodically check if it
should be cancelled
10.

• User-defined signal handler


cant override default
handler.
11.

• Thread pools allows the


number of threads in the
application(s) to be bound
to the size of the pool.
12.

• Hyperthreading uses
resources efficiently,
enable multiple cores to
run on each core and
increasing CPU throughput.
13.

• Thread library provides


programmer with DLL for
creating and managing
threads
14.

• Single threaded process


can implement 3 different
types of threading model.
15.

• Lamda’s law identifies


performance gains from
adding additional cores to an
application that has both
serial and parallel components
16.

• Data parallelism distributes


subsets of the same data
across multiple cores, same
operation on each.
17.

• Task parallelism distributes


threads across cores, each
thread performing unique
operation.
18.

• Intel core i3 can have 4


cores with hyperthreading.
19.

• Resource sharing may allow


continued execution if part
of process is blocked,
especially important for user
interfaces.
20.

• Concurrency implies a
system can perform more
than one task
simultaneously
Exchange papers

Write corrected by:


Answers
1. T 11. T
2. F 12. T
3. F 13. F
4. T 14. F
5. T 15. F
6. T 16. T
7. F 17. T
8. T 18. F
9. T 19. F
10. F 20. F

You might also like