An open API service indexing awesome lists of open source software.

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

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