📝 Resource sharing in distributed system (8 MCQs)
Accessing Remote Resources Across Networked Machines
Resource sharing allows computers in a distributed system to use hardware, data, software, and services located on other networked machines. Shared resources may include files, printers, databases, storage, processors, and specialised devices. Communication protocols and distributed services coordinate requests, while naming and access-control mechanisms help users locate resources and determine whether their use is authorised.
Why Resources Should Not Remain Isolated on Individual Hosts
Keeping every resource local can duplicate equipment, increase cost, and prevent users from accessing information stored elsewhere. Network sharing makes geographically separated systems more useful, but introduces concerns about concurrent access, network interruption, authentication, and differences between local and remote operation.
Remote Requests and Resource Coordination
A client identifies a resource through a name or network address and sends a request using an agreed protocol. The server authenticates the client, checks permissions, performs the operation, and returns a response. Distributed locking, caching, or consistency mechanisms may coordinate simultaneous requests that modify shared information.
Example of a Shared Network Printer
A university connects one printer to a print server. Computers in several departments submit print jobs through the network. The server maintains a queue and sends each job to the printer. Users share the device without installing or physically connecting a separate printer to every workstation.
Access Efficiency and Concurrent Use Challenges
Resource sharing reduces duplicated equipment and supports collaboration, central administration, and flexible access. Network delays can make remote access slower than local access, while server failure may interrupt many clients. Authentication, permissions, queue management, and consistency controls are necessary to prevent misuse and conflicting operations.
Misconceptions About Distributed Resource Sharing
'A shared resource is accessible to every network user' ignores authentication and permissions. 'Remote files behave exactly like local files' overlooks latency and network failures. 'Sharing a printer means every job prints simultaneously' is false because the server normally queues competing jobs.
Exam Focus: Client Server Resource Sharing
Trace how a client discovers, requests, and uses a remote resource. Identify the responsibilities of the server, communication protocol, naming service, and access-control mechanism. Questions may compare centralised and distributed resource management or examine how concurrent updates and server failures affect shared files and devices.
Key Terms of Resource Sharing
- Resource sharing - Joint use of networked resources.
- Client - Machine requesting a service.
- Server - Machine providing a resource.
- Remote access - Using a resource across a network.
- Distributed lock - Coordinates access to shared data.
📝 All Resource sharing in distributed system MCQs
Q1. What is the definition of resource sharing in a distributed system?
📖 Explanation: The correct answer is B because resource sharing means that a node makes its locally available resources—such as files, printers, or processing power—accessible to other nodes in the system. Option A describes replication, not sharing. Option C refers to security, which is unrelated. Option D is about local scheduling only. By sharing resources, distributed systems allow remote users to utilize capabilities they do not own, which is the core idea of resource sharing.
Q2. Why does resource sharing typically improve overall system utilization in a distributed environment?
📖 Explanation: The correct answer is C because sharing resources lets idle or under‑used devices be employed by other nodes, raising overall system utilization. When a printer at site B is used by a user at site A, the device spends less time idle, and the network gains efficiency. Option A mentions faster processors, which is a speed‑up reason, not utilization. Option B suggests lower cost, which is a benefit but not the direct cause of better utilization. Option D claims reduced security risk, which is unrelated to utilization.
Q3. How does resource sharing enhance reliability of a distributed system?
📖 Explanation: The correct answer is A because resource sharing can provide redundancy; if one node fails, another node can access the same resource, improving system reliability. For example, two sites may hold copies of a critical file, so loss at one site does not make the data unavailable. Option B describes faster computation, which is a speed‑up benefit. Option C mentions lower power consumption, which is not directly linked to reliability. Option D suggests easier programming, which is a convenience, not a reliability factor.
Q4. What is a primary downside of resource sharing related to communication?
📖 Explanation: The correct answer is D because while resource sharing enables remote access, it also introduces communication overhead; each request must travel across the network, consuming bandwidth and latency. Option A claims sharing eliminates overhead, which is false. Option B suggests overhead is only a security issue, ignoring performance impact. Option C states that sharing reduces overhead, which contradicts the need for data transfer. Understanding that sharing improves functionality but can increase communication cost helps designers balance performance and resource availability.
Q5. A user at site A wants to print a document on a laser printer located at site B. Which action best illustrates resource sharing?
📖 Explanation: The correct answer is A because sending the document to the remote printer uses the printer’s resource from another site, which is the essence of resource sharing. Option B describes adding a local device, not sharing. Option C keeps the printing task local and does not involve remote resources. Option D merely transmits the file without using the printer resource. By directing the job to the printer at site B, the user leverages a shared device across the network.
Q6. Company X has a site with a GPU cluster and another site with large‑scale storage. To process a data‑intensive analytics job efficiently, which strategy best uses resource sharing?
📖 Explanation: The correct answer is B because it keeps the massive dataset where it resides, minimizing costly data movement, while sending the compute‑intensive tasks to the site that offers the GPU cluster, thus exploiting both resources through sharing. Option A would require moving the entire dataset across the network, incurring high latency and bandwidth use. Option C duplicates expensive hardware unnecessarily, increasing cost. Option D ignores the high‑performance GPU advantage, leading to slower execution. Using shared resources as described in B balances I/O and compute efficiency.
Q7. When designing a distributed system for a multinational corporation, which factor should most influence the decision to centralize a specialized hardware device versus replicate it at multiple sites for resource sharing?
📖 Explanation: The correct answer is C because if the specialized device is needed frequently by many sites, replicating it reduces access latency and network load, making resource sharing more effective. Centralizing a rarely used device can be more cost‑effective, but high usage demands local availability. Option A, power consumption, affects operational cost but not the placement decision. Option B, bandwidth cost, is a secondary concern compared to usage patterns. Option D, brand reputation, does not impact performance or accessibility. Therefore, usage frequency is the primary driver for replication versus centralization.
Q8. A distributed system connects three sites: A, B, and C. The network latencies are ms, ms, and ms. A job requires data from A and processing at C. Which configuration yields the smallest total time versus direct ?
📖 Explanation: The correct answer is B because the total latency when routing the data from A to C via B is the sum of the two links: , which is shorter than the direct A‑C latency of 70 ms. Option A uses the direct path, giving a higher total time. Option C suggests duplicating data, but the latency to reach B is still 20 ms and does not account for the processing at C. Option D processes at A, still requiring the 70 ms transfer to C. Hence, routing through B minimizes the overall delay.