https://github.com/ritu-thombre99/distributed-shared-memory
File reading/writing and resource allocation for multiple clients handled by centralized serve, implemented using multithreading in python
https://github.com/ritu-thombre99/distributed-shared-memory
distributed-server distributed-server-management distributed-systems dsm file-handling multithreading resource-allocation
Last synced: 3 months ago
JSON representation
File reading/writing and resource allocation for multiple clients handled by centralized serve, implemented using multithreading in python
- Host: GitHub
- URL: https://github.com/ritu-thombre99/distributed-shared-memory
- Owner: ritu-thombre99
- Created: 2021-04-22T20:38:40.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-22T20:48:32.000Z (about 4 years ago)
- Last Synced: 2025-01-05T06:27:24.534Z (4 months ago)
- Topics: distributed-server, distributed-server-management, distributed-systems, dsm, file-handling, multithreading, resource-allocation
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Distributed-Server-Management
File reading/writing and resource allocation for multiple clients handled by centralized serve, implemented using multithreading in python## 1. File reading/writing (code files - client1.py and server1.py)
+ A storage at Server side, where multiple clients can access the storage.
+ Whenever a client requests a file check whether it is present or not:
+ if present, check whether it is being read or write by another client or not,
+ if not process the request.
+ Notify the operations in the form of messages
+ When a file being read by client notify the read only operation to requesting client.
+ When a file being write by client notify the no access to the requesting client.
+ Rules :
+ Multiple clients can read the same file simultaneously
+ Multiple clients cannot simualtaneously read and write the same file
+ Multiple clients cannot simualtaneously write the same file## 2. Resource allocation (code files - client2.py and server2.py)
+ The server contains the information about all the instances of all the resources whether they are available or being used by the processes.
+ Resources allocated on the basis of first come first server
+ One client can access only one resource at the same time
+ When a client is allocated the resource, cleint enters the critical section