Skip to content

Consumer and producer problem using CSP with distributed buffer

Notifications You must be signed in to change notification settings

pawlo555/concurrency-theory-JSCP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Concurrency Theory JSCP

Consumer and producer problem using CSP with distributed buffer. Solution made for concurrency theory course in AGH UST. Solution use JSCP library.

The scheme of communication is below:

img.png

Each consumer or producer (agent) in order to perform an operation on one selected buffer asks Splitter where to go. When he got answer he sends a message to selected buffer and get positive or negative reply.
On a positive reply we assume that message was accepted and buffer gave or take a portion of data. On negative reply agent waits a while and asks again the same buffer. If he got three times negative answer he goes back to Splitter and asked for other buffer.

About

Consumer and producer problem using CSP with distributed buffer

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages