Awesome Open Source
Awesome Open Source
Combined Topics
c x
process x

The Top 72 C Process Open Source Projects on Github

The program simulates a donut shop. The donut shop will have 2 bakers. For each baker, the number of donuts the baker will bake today and the time it takes to bake one donut will be inputted. The baker will randomly bake 4 different types of donuts. When the baker chooses what kind of donut to make he looks at the bin where the donut will go, if there is room in the bin the baker makes the donut and puts it into the bin. The baker continues to bake donuts until he makes all of his donuts (donuts for today). Once he bakes all of his donuts he can go home (thread dies). If all of the bins are full the baker will have to wait to bake donuts until space opens. Only one bake or worker can be in a bin at a time. Workers will be talked about later. There will be 4 bins one for each type of donut. The user should input how many donuts fit in a bin. All bins will hold the same number of donuts. Each bin will only allow one thread (baker or worker) to modify it at a time. Each bin should store the maximum number of donuts it can hold, current number of donuts in the bin and the number of donuts that where taken out. There will be 6 worker which fill donut orders. When it is time for a worker to get an order the program will randomly pick the kind of donut (bin #). Each order will only be one donut. If the bin has the donut we take the donut and give it to the customer. If the bin is empty we wait at the bin until a donut is made. We will wait in line at the bin. First worker in the line is the first worker to get a donut. If the worker gets to a bin and it is empty and both bakers are done baking then we need to ask the customer to pick a different kind of donut. All workers will continue to work until all bakers are done working and the bins are empty. Each worker should keep track of the number of donuts sold for each type of donut.
1-72 of 72 projects

Related Projects

C Cpp Projects (2,855)
C Linux Projects (2,715)
Python C Projects (2,082)
Java C Projects (1,210)
C Arduino Projects (1,026)
C Game Projects (1,023)
C Kernel Projects (1,014)
C Hacktoberfest Projects (948)
C Algorithms Projects (945)
C Data Structures Projects (917)
C Windows Projects (907)
C Library Projects (860)
Javascript C Projects (844)
C Operating System Projects (809)
C Opengl Projects (808)
C Android Projects (731)
C Embedded Projects (702)
C Iot Projects (621)
C Shell Projects (603)
C Assembly Projects (593)
Python C Cpp Projects (587)
Python Java C Projects (576)
C Lua Projects (517)
C Raspberry Pi Projects (515)
C Unix Projects (500)
C Os Projects (491)
Java C Cpp Projects (483)
C Python3 Projects (483)
C Arm Projects (450)
C Security Projects (440)
Php C Projects (436)
C Cmake Projects (427)
C Microcontroller Projects (424)
C Algorithms Data Structures Projects (417)
C Driver Projects (408)
C Sdl2 Projects (401)
C Esp8266 Projects (398)
Javascript Python C Projects (370)
C Golang Projects (369)
C Firmware Projects (369)
C Linux Kernel Projects (363)
C Audio Projects (353)
C Emulator Projects (353)
C Cli Projects (351)
C Rust Projects (346)
C Cryptography Projects (343)
Javascript Java C Projects (338)
C Ios Projects (335)
C Cross Platform Projects (321)
C Language Projects (319)
Ruby C Projects (318)
C Linux Windows Projects (310)
C Terminal Projects (305)
Python Java C Cpp Projects (304)
C X86 Projects (291)
C Osdev Projects (274)
C Reverse Engineering Projects (270)
C Filesystem Projects (267)
C Kernel Operating System Projects (261)
C Http Projects (246)
C Database Projects (242)
Javascript Python Java C Projects (241)
C Usb Projects (240)
C Docker Projects (236)
Python C Python3 Projects (236)
C Mqtt Projects (235)
C Networking Projects (231)
C Gui Projects (230)
C Ncurses Projects (216)
C Ffmpeg Projects (212)
C Cuda Projects (210)
C Nginx Projects (208)
C Wifi Projects (206)
C Kernel Os Projects (200)
C Operating System Os Projects (199)
C X11 Projects (196)
C Postgresql Projects (192)
C Command Line Projects (191)
C Encryption Projects (190)
Python C Algorithms Projects (188)
C Linux Unix Projects (185)
C Sql Projects (181)
C Udp Projects (181)
C Visual Studio Projects (174)
C Tutorial Projects (166)
C Image Processing Projects (162)
C Kernel Osdev Projects (159)
C Opencl Projects (157)
C Video Projects (148)
Python Ruby C Projects (142)
C Arduino Esp8266 Projects (141)
C Uefi Projects (140)
C Real Time Projects (140)
C Suckless Projects (140)
C Openssl Projects (131)
C Cpp Cmake Projects (130)
C Redis Projects (130)
C Crypto Projects (127)
C Api Projects (123)