Giter Site home page Giter Site logo

cinemaipc's Introduction

Cinema administration and booking app using diverse Linux IPC mechanisms and file locking

Attention: this app was implemented for Linux Operating Systems.

This is a terminal app written in C that simulates a cinema administration and booking system.

Two types of architectures were implemented:

Insecure Mode

In this architectures client processes interact directly with the DB. The DB is a simple file directory and synchronicity is controlled using file locking.

In order to run the insecure mode, clone or download the repository and then run:

$ chmod +x makeNoIPC
$ ./makeNoIpc

After that, the executable run was created.

$ chmod +x run
$ ./run
Secure Mode

In this architectures client processes interact with workers, not with the DB. Workers are procceses created by the server to serve clients. Workers interact with de DB. For communication between worker and client, several IPC mechanisms were implemented:

  • Sockets
  • Message Queues
  • FIFO
  • Semaphores and Shared Memory
  • Signals

To run the secure mode, clone or download the repository and then run:

$ chmod +x [ makeFIFO | makeQUEUE | makeSIGNALS | makeSEM_SHM | makeSOCKET ]
$ ./[ makeFIFO | makeQUEUE | makeSIGNALS | makeSEM_SHM | makeSOCKET ]

Depending on which IPC mechanism was chosen.

For example, to use FIFO use the makeFIFO script.

After that, the executables client and server were created. Then:

$ chmod +x client
$ chmod +x server

In two different terminals, run

$ ./client
$ ./server

Attention: server must be running for make actions with clients

Screenshots

Screenshots

Screenshots

Screemshots

This was the final project of Operating Systems course, at ITBA.
Made By:

cinemaipc's People

Contributors

iitzco avatar

Watchers

James Cloos avatar  avatar

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.