[LCP]multithreaded ideas?
Bradley, Peter
PBradley at uwic.ac.uk
Sat Feb 15 00:03:25 UTC 2003
The classic one is any producer/consumer situation. Say a program to model
the operation of an airport shuttle picking up passengers going to and from
an airport (or an aeroplane for that matter). The producer (an aircraft,
say) and the consumer (the shuttle) run in different threads. The shuttle
mustn't try to collect again from the terminal (data area) until a new set
of passengers is ready (i.e. the program doesn't collect the same set
twice), and the aircraft must not overwrite the number in the terminal until
they've been collected.
I know it's a bit contrived, but ...
Peter Bradley
Analyst/Programmer
Athrofa Prifysgol Cymru, Caerdydd (UWIC)
-----Original Message-----
From: Aaron Walker [mailto:ka0ttic at cfl.rr.com]
Sent: 14 February 2003 15:19
To: linuxcprogramming at lists.linux.org.au
Subject: [LCP]multithreaded ideas?
Hello,
I just finished reading "Advanced Linux Programming" and am looking to
implement what I've read about threads. I've been racking my brain all
night trying to think of a program I could write to help learn threads,
but have come up with nothing. I'm looking for some input about a
program I could write, to help me learn, but at the same time something
that would actually benefit from using threads and have a real-world
use. Please let me know if anyone has any input on such learning projects.
Thanks,
A. Walker
_______________________________________________
This is the Linux C Programming List
: http://lists.linux.org.au/listinfo/linuxcprogramming List
More information about the linuxCprogramming
mailing list