Question: Computer science: operation system multiple choices questions. Please answer all questions, I will give thumb up, thank you! int temp void swap(int *y, int *z)
Computer science: operation system multiple choices questions. Please answer all questions, I will give thumb up, thank you!



int temp void swap(int *y, int *z) int local; local = temp; temp y = temp; temp = local; Select the best answer regarding the given code snippet. Select one: a. The code is neither thread safe nor re-entrant . The code is re-entrant but not thread safe . entrant and thread safe d. The code is thread safe but not re-entrant Select all the options that are true about pipes and sockets. Select one or more: a. Sockets in general use a client-server architecture. b. Sockets can allow structured stream of bytes to be exchanged between the communicating threads. C. Pipes communicate by means of producer-consumer fashion. d. Ordinary pipes are bi-directional, which allow two-way communication. e. Named pipes require no parent-child relationship. f. Named pipes can be used over a network, while ordinary pipes cannot be used. e deadlock preven because those algorithms can potentially lead to deadlocks Select one: True False
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
