Question
6. (2 points) Which of the following is NOT a motivating factor of the thread abstraction: a) Moore's law is ending b) The multi/many-core architectures
a) void worker (void &arg) f *worker logic */ int main(void) i I C) pthread t tidl, tid2 pthread create(&tid1. NULL. worker. NULL) pthread create(&tid2. NULL. worker. NULL) d) pthread join(tid1. NULL) pthread_join(tid2. NULL) return 0 8. (2 points) On single-processor systems, in a correct solution to the critical section problem: A process that does not execute a code-related to the Critical Section should not prevent others from entering the Critical Section Processes should enter the Critical Section in First-Come-First-Served fashion Some slow processes may starve Interrupts have to be disabled when one process is in the Critical
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started