Git Product home page Git Product logo

distributed-shared-memory's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.