CS 6200 Operating Systems : Command Line Parameter

$20 Bonus + 25% OFF

Securing Higher Grades Costing Your Pocket?
Book Your Assignment at The Lowest Price
Now!

Students Who Viewed This Also Studied

CS 6200 Operating Systems

Task:

Output

Your program should output what is being output in the sample runs. Namely 

• Whenever there is a change to the queue (insert/delete), print the whole queue (on a single line) after the change is made 

• When the dealer push an item onto the queue, print the statement (“Dealer is pushing x to the queue” – where x is the value of the number being pushed). This line should be printed before x is pushed onto the queue. 

• When a thread push an item onto the queue, print the statement (“Thread t pushing x to the queue” – where x is the value of the number being pushed). This line should be printed before x is pushed onto the queue. 

• When a thread pop an item off the queue, print the statement (“Thread t pop x from the queue”– where t is the player number and x is the number. It should also print (on the same line), whether the player score, and if the thread needs to push any number back on the queue (and which number to push).

Stage 1 (15 points) 

The base part allows one game to be played. In this part you are going to simulate playing multiple games with different players. 

In this part you program should read in a name of a file via the command line parameter. Then the program should read that file. The file format is the following: 

• The first line has three integers, which are N, T, and the total number of players for all the games (we will denote it as p). (N is the number of players for each game) 

• Then each of the following p lines contains one string, which is the name of a player. The program now consists of a list of games. The main program, in addition to being the dealer, will have to facilitate multiple games. 

In this part, you should consider each thread is a slot for a player to play in the game. The main program will start by assigning players to the slots, and once all the slots are filled, then play a game among them T is the number of numbers generated per game). At the end of each game, the winner will leave, opening up a slot for the next player to fill in to start a new game.

CS 6200 Operating Systems

Answer in Detail


Solved by qualified expert

Get Access to This Answer

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

12 More Pages to Come in This Document. Get access to the complete answer.

More CS 6200 Operating Systems: Questions & Answers

ITECH1000 Programming

This stage requires you to prepare documentation that describes the function of the program and how it is to be tested.  There is no coding or code testing involved in this stage.  A document template has been provided for your use.  Requirements: 1) Read through Stage 2: Program Deve …

View Answer

7COM1073 Foundations Of Data Science

Question:
The dataset includes a certain number of diagnostic measurements (features), which can be used to diagnostically predict whether or not a participant has diabetes. Note that the last column is the label information: participants who have diabetes are classified as ‘positive’ …

View Answer

Humanities

1. Design and Research: To produce a design model (in a UML class diagram using a CASE tool) based on a layered architectural style (which should include four layers with ONE GRASP and ONE GoF pattern of your choice) for your chosen functionality (i.e. ONE key use case) and a report on the GRASP and …

View Answer

Management

Question 1.    Sorting instances of a Java class that implements Comparable interfaceYou are given a list of student information in a CSV file that contains the following information: student ID, first name, last name, final mark, and final grade. Your task is to rearrange them accord …

View Answer

Content Removal Request

If you are the original writer of this content and no longer wish to have your work published on Myassignmenthelp.com then please raise the
content removal request.

Choose Our Best Expert to Help You

Pope Atkins

I am a professor of Geology at James Cook University Singapore.

800 – Completed Orders

Hire Me

Gia Kim

Ph.D. in English Literature from New York University.

0 – Completed Orders

Hire Me

Still in Two Minds? The Proof is in Numbers!

33845 Genuine Reviews With a Rating of 4.9/5.

Economics

Home Work: 3500 Pages, Deadline:
3 days

well written, i scored well in exam, thanks to the expert who answered all my questions on time

User ID: 7***15 Adelaide, Ecuador

Marketing

Home Work: 12 Pages, Deadline:
5 days

thanks for your support. very well written and answered all questions but some answers were submit late so i didnt upload

User ID: 7***15 Adelaide, Ecuador

Accounting

Assignment: 7 Pages, Deadline:
2 days

very well written, answered all questions correctly and submited on time, the management is really good

User ID: 7***15 Adelaide, Ecuador

Finance

Course Work: 7 Pages, Deadline:
4 days

very well writen and answered all questiones, the graphs and answers are all correct. submited on time

User ID: 7***15 Adelaide, Ecuador

Marketing

Essay: 4 Pages, Deadline:
23 hours

well written, good referencing, submited on time, very reliable and less plagrism, i manage to score grade C

User ID: 7***15 Adelaide, Ecuador

Maths

Home Work: 1 Page, Deadline:
4 days

Great work, got a good grade on this assignment. I am very happy with the end result, thank you.

User ID: 4***77 United States

Mechanical Engineering

Home Work: 2 Pages, Deadline:
5 days

Good work and effort with this quick turnover assistant . Will use them again next time

User ID: 7***81 Perth, Australia

Civil Law

Essay: 2.4 Pages, Deadline:
10 hours

Thank you very much. I have an A. I will highly recommend your service to my friends. Your work is excellent, and your service is trustworthy.

User ID: 8***80 United States

Marketing

Assignment: 2 Pages, Deadline:
3 days

Thank you everything looks amazing. I will let you know what grade I get. Thanks so much

User ID: 6***39 Round Rock, United States

Civil Engineering

Programming: 2 Pages, Deadline:
4 days

Absolutely Awesome!!! This was done perfectly and tutor very easy to work with. Thank you so much

User ID: 6***39 Round Rock, United States

Economics

Home Work: 3500 Pages, Deadline:
3 days

well written, i scored well in exam, thanks to the expert who answered all my questions on time

User ID: 7***15 Adelaide, Ecuador

Marketing

Home Work: 12 Pages, Deadline:
5 days

thanks for your support. very well written and answered all questions but some answers were submit late so i didnt upload

User ID: 7***15 Adelaide, Ecuador

Accounting

Assignment: 7 Pages, Deadline:
2 days

very well written, answered all questions correctly and submited on time, the management is really good

User ID: 7***15 Adelaide, Ecuador

Finance

Course Work: 7 Pages, Deadline:
4 days

very well writen and answered all questiones, the graphs and answers are all correct. submited on time

User ID: 7***15 Adelaide, Ecuador

Marketing

Essay: 4 Pages, Deadline:
23 hours

well written, good referencing, submited on time, very reliable and less plagrism, i manage to score grade C

User ID: 7***15 Adelaide, Ecuador

Maths

Home Work: 1 Page, Deadline:
4 days

Great work, got a good grade on this assignment. I am very happy with the end result, thank you.

User ID: 4***77 United States

Mechanical Engineering

Home Work: 2 Pages, Deadline:
5 days

Good work and effort with this quick turnover assistant . Will use them again next time

User ID: 7***81 Perth, Australia

Civil Law

Essay: 2.4 Pages, Deadline:
10 hours

Thank you very much. I have an A. I will highly recommend your service to my friends. Your work is excellent, and your service is trustworthy.

User ID: 8***80 United States

Marketing

Assignment: 2 Pages, Deadline:
3 days

Thank you everything looks amazing. I will let you know what grade I get. Thanks so much

User ID: 6***39 Round Rock, United States

Civil Engineering

Programming: 2 Pages, Deadline:
4 days

Absolutely Awesome!!! This was done perfectly and tutor very easy to work with. Thank you so much

User ID: 6***39 Round Rock, United States

Have any Query?
Reference no: EM132069492

WhatsApp
Hello! Need help with your assignments? We are here

GRAB 25% OFF YOUR ORDERS TODAY

X