Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Topic is Operating Systems. Some questions could have multiple correct answers. Choose all correct answers. QUESTION 10 Which of the following are basic thread operations?

Topic is Operating Systems.
Some questions could have multiple correct answers.
Choose all correct answers.
image text in transcribed
QUESTION 10 Which of the following are basic thread operations? Basic meaning that all thread implementations (whether ULT OF KLT) have these three operations. CA. wait OB. signal oc. fork OD. spawn QUESTION 11 In a symmetric multiprocessor (SMP) kernel, OA. reentrant kernel code can execute on multiple processors concurrently. OB. fault tolerance involves the same issues as on a uniprocessor machine. OC. each processor is scheduled from the pool of available processes. OD. processors share virtual memory address space and I/O resources. QUESTION 12 12. Assume a Linux process P with two threads of execution A and B. CA. when thread A modifies a value in its data segment, thread B can see it. OB. A and B can access the same open file if the file descriptor is visible to both. Oc. If thread A calls sigsuspend the entire process is suspended. OD. If thread P terminates by calling exit(), threads A and B immediately terminate. QUESTION 13 If you write a C application using pthreads under Linux (i.e., KLTS) A. thread management is done entirely by the kernel. OB. the best performance will be on single processor system. c. the thread library is part of glbc. @D. a scheduling switch from one thread to another requires a processor mode switch. QUESTION 14 In a pure ULT model CA. thread switching does not require kernel privileges. OB. thread scheduling can be tailored to the application. oc. two threads can be scheduled on different processors. OD. if one thread makes a process blocking request another thread can begin executing. QUESTION 15 In Solaris a user-level thread (ULT) mapped to a kernel thread is called a OA. kernel thread. OB. Heavy-Weight Process (HWP) OC. Light-Weight Process (LWP) OD. None of the above QUESTION 16 16. In a multithreaded environment, a process is defined as A. a unit of resource allocation. B. a unit of protection. QUESTION 17 Synchronization is necessary in a multithreaded environment A. to prevent threads from accessing resources or data at the wrong time. OB. to make sure the processor is kept busy. he QUESTION 18 POSIX threads share the same OA. process control block (PCB). OB. data segment. C. user stack. OD. kernel stack

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions