Assignment 2


Due Date:  Feb 25, 2008

For this assignment, you will examine how to write some simple message-passing programs using Erlang.
You can find details about Erlang here. You should download Erlang to the platform of your choice.

Details about Erlang's concurrency primitives can be found here.

Part I

Write a concurrent Erlang program (using message-passing) to solve the dining philosophers problem. Make sure to clearly state any assumptions you make.

Part 2

Rewrite the samefringe problem in Erlang. Rather than using continuations, you should use message-passing between the two threads to communicate information between them.