Hello,

I am developing a small graduate simulation project in which i have to simulate data link layer.

In my project there will be two end: Sender and Reciever threads running.

My sender thread will fetch object from a queue and then send it to the reciever thread with object id mentioned in object.

When reciever thread recieves object send by Sender then it wil send acknowledgement for the object recieved and will mention that this is acknowledgement for object id which it has recieved.

When sender recieves acknowledgement then it will then fetch another object from the queue and then send next object. and so on.

-----------

Case: If object sent by sender is lost/ not recieved to reciever then it will not send the ack.

Case : Reciever recieves object but then it delays in sending ack,


In any above case once the sender sends the object then it will wait for particular period of time to get the acknowledgement. if it doesnot gets the acknowledgement then it will resend the object.

I am planning to use threading, but can you please guide me how to use this.

Sandeep Arya