Coder Social home page Coder Social logo

tsartsa / java_dist_restaurant Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 40 KB

A Distributed System Java application, emulating the operation of a Restaurant

Java 100.00%
client-server distributed-systems java socket-programming synchronization threads

java_dist_restaurant's Introduction

Information

This is a project to showcase the use of Sockets in Java, using Threads and Synchronization.

Details

In this Restaurant, we have Chefs that specialize in making specific dishes (Fish, Seafood and Meat).

  • A customer selects the Chef (type of food) they want and orders the number of portions they desire

  • The Chef takes the time required to prepare the dishes and serves them when ready

  • Each Chef is limited to preparing 20 portions per shift and can only have a maximum of 5 dishes ready at a time

  • The orders from the customers are repeated until no more dishes can be prepared

At this point the program releases resources and stops executing.

Connection errors and wrong responses are handled by printing the according messages and releasing resources.

Instructions

To run the program quickly, download only the two .jar files from the /dist folder of the Server and Client projects. Execute them through cmd (two separate windows) with the java -jar <application_name>.jar command, where application_name is replaced with the name of the file accordingly.

If you are afraid of executing my .jar files, you can create your own from scratch by making a clean build for each of them through a Java IDE (e.g. Apache NetBeans). That means you first have to download both projects' source code and load them to the IDE of your choice.

Topics

  • Distributed Systems
  • Java
  • Sockets
  • Threads
  • Synchronized methods
  • Jar files

Technologies Used

  • Java 17
  • Apache NetBeans

Notes

University project for the course of Distributed Systems

Have fun! ๐Ÿ˜Ž

java_dist_restaurant's People

Contributors

tsartsa avatar

Watchers

 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.