1,533
15
Essay, 1 pages (250 words)

Computer systemssummer assignment

What are asynchronous, deferred, and disabled cancellation in pitheads? What makes them different? 2. What is the role of the contentiousness for pitheads? How does it affect the execution of pitheads? 3. Assume you have a system that does not provide a sleep(unsigned long uses) call to suspend the execution of the thread for a given amount of time, say in execs.

How would you implement this function using condition variables? (Describe your implementation in form of a C/C++ code snippet similar to the textbook. ) 4. (Research Assignment) The expect system call (and variations of it) transforms the calling process into a new process by loading the given executable Into memory. (a) What happens to the file descriptors of open files? (b) How can this behavior be controlled? 5. [3] Ten processes share a critical section Implemented by using a semaphore x.

Nine of these processes use the code P(x);; V(x). However, one process erroneously uses the code V(x);; P(x). What Is the maximum number of processes that can be In the critical section at the same time? 6. [3] A customer gives the following Instructions to a bank manager: Do not credit any funds to my account if the balance In my account exceeds n, and hold any debits until the balance in the account Is large enough to permit the debit.

Design a class In Java (called Coffeecakes, to be Initialized with a given value for n) with two methods, credit and debit, that Implements this type of account.

Thank's for Your Vote!
Computer systemssummer assignment. Page 1
Computer systemssummer assignment. Page 2

This work, titled "Computer systemssummer assignment" was written and willingly shared by a fellow student. This sample can be utilized as a research and reference resource to aid in the writing of your own work. Any use of the work that does not include an appropriate citation is banned.

If you are the owner of this work and don’t want it to be published on AssignBuster, request its removal.

Request Removal
Cite this Essay

References

AssignBuster. (2022) 'Computer systemssummer assignment'. 1 August.

Reference

AssignBuster. (2022, August 1). Computer systemssummer assignment. Retrieved from https://assignbuster.com/computer-systemssummer-assignment/

References

AssignBuster. 2022. "Computer systemssummer assignment." August 1, 2022. https://assignbuster.com/computer-systemssummer-assignment/.

1. AssignBuster. "Computer systemssummer assignment." August 1, 2022. https://assignbuster.com/computer-systemssummer-assignment/.


Bibliography


AssignBuster. "Computer systemssummer assignment." August 1, 2022. https://assignbuster.com/computer-systemssummer-assignment/.

Work Cited

"Computer systemssummer assignment." AssignBuster, 1 Aug. 2022, assignbuster.com/computer-systemssummer-assignment/.

Get in Touch

Please, let us know if you have any ideas on improving Computer systemssummer assignment, or our service. We will be happy to hear what you think: [email protected]