Skip to content

File reading/writing and resource allocation for multiple clients handled by centralized serve, implemented using multithreading in python

Notifications You must be signed in to change notification settings

ritu-thombre99/Distributed-Shared-Memory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

File reading/writing and resource allocation for multiple clients handled by centralized serve, implemented using multithreading in python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages