csen5322 quiz-4. multiple choices 1. in win32, a parent uses the waitforsingleobject() function to...

3
CSEN5322 Quiz-4

Upload: maximilian-anderson

Post on 22-Dec-2015

218 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: CSEN5322 Quiz-4. Multiple Choices 1. In Win32, a parent uses the WaitForSingleObject() function to wait for its child thread to complete. What is the

CSEN5322

Quiz-4

Page 2: CSEN5322 Quiz-4. Multiple Choices 1. In Win32, a parent uses the WaitForSingleObject() function to wait for its child thread to complete. What is the

Multiple Choices1. In Win32, a parent uses the WaitForSingleObject() function to wait for its child thread to complete. What is the equivalent function in Pthreads?

A) win32_join() C) pthread_join() B) wait() D) join()

2. Windows XP uses the ____.A) one-to-one model C) one-to many-modelB) many-to-one model D) many-to-many model

3. The _____ model allows a user-level thread to be bound to one kernel thread.A) many-to-many C) one-to-oneB) two-level D) many-to-one

T/F4. Asynchronous cancellation is preferred over deferred cancellation.5. Linux distinguishes between processes and threads.

Page 3: CSEN5322 Quiz-4. Multiple Choices 1. In Win32, a parent uses the WaitForSingleObject() function to wait for its child thread to complete. What is the

Multiple Choices1. In Win32, a parent uses the WaitForSingleObject() function to wait for its child thread to complete. What is the equivalent function in Pthreads?

A) win32_join() C) pthread_join() B) wait() D) join()

2. Windows XP uses the ____.A) one-to-one model C) one-to many-modelB) many-to-one model D) many-to-many model

3. The _____ model allows a user-level thread to be bound to one kernel thread.A) many-to-many C) one-to-oneB) two-level D) many-to-one

T/F4. Asynchronous cancellation is preferred over deferred cancellation. F5. Linux distinguishes between processes and threads. F