Create a single dimensional array between 10 and 1000


Problem

Required components:

1) Criteria/Constraint Table
2) Data Gathering, Q/A (What you don't know).
3) Analysis Paper/Pencil
4) Design Documents (Flowchart, Pseudo-code, Finite State Machine, etc).
5) Code and Syntax
6) Test Plan with Screenshots
7) Documentation
8) Generalization

DETAILS:

Create a single dimensional array between 10 and 1000 entries to represent seats in the theater. Initialize all valuables to "A" for available. Create a function named agent that will be changing the available seats to "S" for sold. Multiple threads of the "agent" function will be working concurrently on the exact same array., and all threads will end once all seats have been sold (all values set to "S").This project will require use of process.h and semaphore.h, which we will use to create threads and avoid race conditions, respectively.Supplementary information from Day 6 recommends we create a control block structure containing both the array of seats/tickets, as well as the semaphore. It is imperative that we pass this structure as a pointer to our function.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Create a single dimensional array between 10 and 1000
Reference No:- TGS02732115

Expected delivery within 24 Hours