CS 431/482/531/564
Here are some examples of Java threads and Ada Tasks
All 4 courses...
Simple Java Thread... extend Thread
Simple Java Thread... implement Runnable
A shared data item is used by multiple threads
Java BoundedBuffer ('extends Thread')
Java BoundedBuffer ('implements runnable')
Java BoundedBuffer - Multiple
CS 431/531 only...
Java BoundedBuffer - Semaphore
Java semaphore
Ada Tasks which I don't really cover any more...
Ada rendezvous example
A simple Ada bounded buffer
More complicated Ada bounded buffer
Reader-Writer in Ada
Ada command-line param... any # of strings
Ada command-line param... one integer