Discussion:
Output for fstart
(too old to reply)
cs412049
2005-05-06 15:24:31 UTC
Permalink
I am not sure how the system can recieve before its sends?
Also is this a vallid output? To me my output makes more sense
than the others.

Starting fragmentation send/receive tests...
Starting process 12 (Sender)...
Process 12 (Sender) sent 10 bytes
Starting process 13 (Receiver)...
Process 13 (Receiver) received 5 bytes
Process 13 (Receiver) received 5 bytes
Process 12 (Sender) sent 10 bytes
Process 13 (Receiver) received 5 bytes
Process 13 (Receiver) received 5 bytes
Process 12 (Sender) sent 10 bytes
Process 13 (Receiver) received 5 bytes
Process 13 (Receiver) received 5 bytes
Process 12 (Sender) sent 10 bytes
Process 13 (Receiver) received 5 bytes
Process 13 (Receiver) received 5 bytes
Process 12 (Sender) sent 10 bytes

Process 12 (Sender) is done !
Process 13 (Receiver) received 5 bytes
Process 13 (Receiver) received 5 bytes

Process 13 (Receiver) is done !

Fragmentation tests completed.
Drew Chen
2005-05-06 15:40:05 UTC
Permalink
i think no,
the buffer size is supposed to only be 5 bytes

so you must send 5 bytes, print receive 5 bytes
send another 5 bytes, print receive 5 bytes
then now you've sent 10 bytes, print sent 10 bytes

your process 12 sends 10 bytes immediatly, but that shouldn't be able to happen
until the receiver gets 5 bytes, then another 5 bytes.

-drew
Iulian Neamtiu
2005-05-06 16:04:57 UTC
Permalink
The output is definitely not correct. You send 10 bytes even before the
receiver starts, so looks like your send is not blocking if the buffer
is full.

Iulian
Post by cs412049
I am not sure how the system can recieve before its sends?
Also is this a vallid output? To me my output makes more sense
than the others.
Starting fragmentation send/receive tests...
Starting process 12 (Sender)...
Process 12 (Sender) sent 10 bytes
Starting process 13 (Receiver)...
Process 13 (Receiver) received 5 bytes
Process 13 (Receiver) received 5 bytes
Process 12 (Sender) sent 10 bytes
Process 13 (Receiver) received 5 bytes
Process 13 (Receiver) received 5 bytes
Process 12 (Sender) sent 10 bytes
Process 13 (Receiver) received 5 bytes
Process 13 (Receiver) received 5 bytes
Process 12 (Sender) sent 10 bytes
Process 13 (Receiver) received 5 bytes
Process 13 (Receiver) received 5 bytes
Process 12 (Sender) sent 10 bytes
Process 12 (Sender) is done !
Process 13 (Receiver) received 5 bytes
Process 13 (Receiver) received 5 bytes
Process 13 (Receiver) is done !
Fragmentation tests completed.
Loading...