[comp.lang.c] concurrent procedures

mbp5756@sjfc.UUCP (Mike Berry) (03/03/89)

I need some help.  I am trying to write a C program that will run a couple
of procedures concurrently.  We have a concurrent Pascal on our system
UNIX 4.3 BSD, which is pretty neet, but very limited.  So I thought if I
could do it in C I could write much more exciting code.  I'm pretty sure I
have to use a call to fork to start my other process, but I have no idea
how to tackle the question of mutual exclusion of my critical recources
(probably just some variables for know).   I am trying to write a
simulation of an airport, with planes landing and taking off in random
interval in "real time", which constitutes the use of concurrent
programming.  If anybody out there has done this, or has any suggestion, I
would be grateful.  Sample code would be perfect if you have done this,
else some helpful hints.  If there is a demand I will post a summary of
results.

Thanks in advance.

mbp5756@sjfc.UUCP (Mike Berry) (03/03/89)

I hate it when that happens!!
(forgot .signature again)

+------------------------------------------------------------------+
| Mike Berry            Do not go where the path leads             |
| Rochester, New York   Rather go where there is no path           |
|                       And leave a trail behind                   |
|                                                                  |
| {whatever}...rochester!ritcv!cci632!sjfc!mbp5756                 |
+------------------------------------------------------------------+