CSCE 3600 exam 2 - part 2 Exam
Questions and Answers Graded A+
1. the thread finishes the function it started with
2. issues pthread_exit() command - Correct answer-a process that calls
pthread_join() blocks its own execution until _____ or _____ happens
heavyweight - Correct answer-a process is considered to be __
thread - Correct answer-can be seen as lightweight process and a unit of execution
associated with a particular process
responsiveness, resource sharing, economy, scalability - Correct answer-4 benefits
of multithreading
program counter
stack
stack pointer
registers
scheduling properties
©COPYRIGHT 2025, ALL RIGHTS RESERVED 1
, set of pending/blocked signals
thread specific data - Correct answer-7 things each thread has
true - Correct answer-(T/F) threads share address space and open files
false - Correct answer-(T/F) threads exist within a process, but a thread does not
terminate when a process terminates
POSIX threads (pthreads) - Correct answer-the most commonly used thread
package on Linux
pthread_create - Correct answer-create a new thread
pthread_detach - Correct answer-detach a thread, to release its resources when
thread terminates
pthread_exit - Correct answer-terminate calling thread without terminating the
process
pthread_join - Correct answer-wait for a specified thread to terminate
pthread_equal - Correct answer-compare thread IDs
pthread_kill - Correct answer-send a specified signal to a thread
pthread_self - Correct answer-obtain the ID of the calling thread
©COPYRIGHT 2025, ALL RIGHTS RESERVED 2
Questions and Answers Graded A+
1. the thread finishes the function it started with
2. issues pthread_exit() command - Correct answer-a process that calls
pthread_join() blocks its own execution until _____ or _____ happens
heavyweight - Correct answer-a process is considered to be __
thread - Correct answer-can be seen as lightweight process and a unit of execution
associated with a particular process
responsiveness, resource sharing, economy, scalability - Correct answer-4 benefits
of multithreading
program counter
stack
stack pointer
registers
scheduling properties
©COPYRIGHT 2025, ALL RIGHTS RESERVED 1
, set of pending/blocked signals
thread specific data - Correct answer-7 things each thread has
true - Correct answer-(T/F) threads share address space and open files
false - Correct answer-(T/F) threads exist within a process, but a thread does not
terminate when a process terminates
POSIX threads (pthreads) - Correct answer-the most commonly used thread
package on Linux
pthread_create - Correct answer-create a new thread
pthread_detach - Correct answer-detach a thread, to release its resources when
thread terminates
pthread_exit - Correct answer-terminate calling thread without terminating the
process
pthread_join - Correct answer-wait for a specified thread to terminate
pthread_equal - Correct answer-compare thread IDs
pthread_kill - Correct answer-send a specified signal to a thread
pthread_self - Correct answer-obtain the ID of the calling thread
©COPYRIGHT 2025, ALL RIGHTS RESERVED 2