Concurrency: What's a channel?
I'm studying pascal-fc for a concurrency test. I'm familiar with Java's threads and its monitors. I don't understand the role of channels, please explain. ...
I'm studying pascal-fc for a concurrency test. I'm familiar with Java's threads and its monitors. I don't understand the role of channels, please explain. ...
I'm looking for tutorials and examples on Pascal FC's channels and rendesvouz mechanisms. ...
I'm using the Pascal FC implementation for Windows Vista found on http://www-users.cs.york.ac.uk/burns/pf.html I'm trying to run the dining philophers problem found on the link but I don't get how to make the compiler work. Screenshot ...
Program Parcial2; type buffer = channel of integer; var buffers : array [1..2] of buffer; val:integer; process sleeper (id:integer); var i : integer; begin for i:=1 to 10 do begin sleep (random(10*id)); **buffers (id):any;** end; end; process troll; begin buffers[1]: random(10); end; process watcher; begin...