Answer the following questions about readers and writers
Answers:
A. Yes, the multiple readers from different processes can access the same file at the same time
B. Yes, Multiple writer can access the same file at the same time, but they won't be able to write the data at the same time. To do this the writer will have to take exclusive writing lock on the file. The other writer needs to wait to write the data.
C. Yes, multiple writers can access different files at the same time. Because the files are independent so concurrency control won't be an issue in this case
D. While using reader writer concept, it is important to check for the concurrency otherwise the data may not be consistence. To do this mutual exclusion is used,so that the changes made by different process to a file is consistent and the integrity of data is maintained.
E. Yes, starvation can occur in a reader/writer problem. Suppose a reader is holding the lock for the file and writer is then schedule to execute. But if we service the read request before the write request and there is always a read request to be serviced, then the write request will never be executed and starvation will occur
Answer the following questions about readers and writers Is it possible for multiple readers to access...
Process Synchronization Assignment: Readers-Writers Problem . Consider readers and writers share a bounded array. ii. Writers write an integer on the array. iii. Readers read and display contents of the array. iv. Writers will not be allowed to write if there is a reader reading the array. v. Only one writer can access the array at a time. But many readers can access the array at the same time. vi. All readers are blocked if there is a writer writing...
pleasw answer as soon as possible . this is for my exam practice . please read the code and answer the question In a system, there are multiple reader processes which read from a shared file and multiple writer processes which update a shared file. The following variables are shared among all processes: int readCounter; semaphore mutex, writeLock; Reader and writer processes are given in the following C++-like pseudo programs: Reader Process // Non-Critical Section P(mutex); Writer Process // Non-Critical...
________ makes it possible to easily access files, apps, and app settings across multiple devices. A. Cloud storage B. New Technology File System (NTFS) C. Hierarchical file system D. Linux
With the use of an example for each, answer the following questions on C++ header files: 1- What is the purpose of a C++ header file? Your explanation should include reference to typical header file content. 2-How is it possible to avoid multiple inclusions of the same file? 3- What are the benefits of conditional compilation?
Please answer the following questions: 1) Describe the main functions of a computer network (12 marks) 2) In your own words, compare the three types of files: directories, ordinary files, and special files. Explain what would happen if a user modified a directory file (10 marks) 3)What are the advantages of having a Windows system using the menu-driven interface, instead of typing commands. Give at least one example where having menus is an advantage (6 marks) 4) Identify at least...
Answer the following questions a) If average page-fault service time is 9 milliseconds, a memory access time is 202 nanoseconds, and the page fault rate is 0.2% then what is the effective access time (in nanoseconds) for a demand paging scheme. b) Under what circumstances do page faults occur? Describe the actions taken by the operating system when a page fault occurs.
1. True-false or multiple choice. Provide a one-sentence explanation you will get no credit for a correct answer without a proper explanation. Suggested time to spend on these questions: 10 minutes. [4x5-20ptsl (a) True or false: Peterson's algorithm for mutual exclusion offers bounded wait. b) Thue or falher Cumsider a concumcent program comitingof several 1oad indctioms e instructions (or instructions with similar effects as store). Such a program can never have any race conditions (c) True or false: Solutions based...
A small financial firm is currently using ACL (Access Control List), a discretionary access control mechanism, for the protection of its resources (including computer systems and data files). As the firm is small, its resources are located in the same building and managed in the same domain. However, recently this firm is planning a merger with another firm, and if this merger is successful, its IT system will be transformed into a large-scale distributed system where resources will be managed...
Kindly answer the questions. Answer all of it if possible there's just some short answers. Thanks. PLEASE ANSWER ALL OF IT, IF NOT THEN LET OTHER REAL EXPERTS DO IT BECAUSE SOME EXPERTS EVEN DO THE WHOLE THING AND AN ESSAY ABOUT IT! IF NOT, THEN IGNORE THIS POST! Pick 4/5 questions Taste and Smell Each of the 5 taste sensations can be explained from an evolutionary perspective. How is each of the 5 tastes important in keeping animals alive...
please answer both questions quickly and I will rate!!! Question 5 2 pts Which of the following are characteristics of a hierarchial file system? It can be remotely mounted-like your Ipod. It provides a mechanism to plug a cable into for access It provides a mechanism to handle a set of files It allows multiple root nodes to mount remotely. There is a root node at the base of the hierarchy Question 6 2 pts Volatile memory retains the information...