bcole / swprojectday Goto Github PK
View Code? Open in Web Editor NEWSE441 (Concurrent) Group 4 Project
SE441 (Concurrent) Group 4 Project
The program to be executed is in the SoftwareProjectDay folder, called Main.java. When the program is executed, it begins immediately initializing objects and preparing to start the "day." It then starts all the threads through a latch. There is no user input needed. As of right now there are no configurable constants that can be safely changed in the code. But there are a few known constants: 1/20 - the chance that an employee will ask a question each time it loops. 12 - number of employees, with 3 teams containing 4 people (and 1 lead each) 1 - number of Managers 4 - capacity of conference room 1 - number of conference rooms The program prints out several statements anytime an event occurs, like an employee asking a question or a manager going to lunch. When defining the different workers, we assign them a number for their team and position. One example is Developer "32" - He is the second developer on team 3. Team leads are considered the first developer in their team. Here is an example output from the program: 12:00 Manager goes to lunch 12:00 Developer 22 asks Team Lead a question (has answer). 12:06 Developer 23 goes to lunch 12:15 Developer 13 goes to lunch 12:15 Developer 24 asks Team Lead a question (doesn't have answer). 12:15 Developer 21 passes the question to the Manager. 12:15 Developer 22 asks Team Lead a question (has answer). 12:22 Developer 32 asks Team Lead a question (has answer). 12:22 Developer 33 goes to lunch 12:41 Developer 12 goes to lunch 1:00 Manager starts answering question from Developer 21. 1:02 Developer 11 goes to lunch 1:02 Developer 23 asks Team Lead a question (has answer). 1:10 Manager answers question. 1:10 Developer 32 goes to lunch
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.