Computer SystemsSummer Assignment

Computer SystemsSummer Assignment Words: 266

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.

Don’t waste your time!
Order your assignment!


order now

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.

How to cite this assignment

Choose cite format:
Computer SystemsSummer Assignment. (2019, Mar 27). Retrieved November 23, 2024, from https://anyassignment.com/samples/computer-systemssummer-2665/