IPC
Posted: Mon Nov 03, 2008 2:36 pm
hi
ive developed a basic IPC with send and recievie and its been working for a while now.
its just a basic message queue with no blocking or waiting or anything, which ive tested and runs fine for about an hour
before failing. ive found that this is due to running alot of different tasks and not implementing blocking.
anyway ive did some research into how blocking would work and ive come up with this
when sending a msg, block the sender and unblock the reciever.
when receiving a msg, no blocking should occur until there is no messages left to receive.
when replying to a msg, unblock the sender.
and by the term blocking a mean stop the task from being scheduled.
is this the correct way to go about this and can anyone see any problems with this??
thanks
ive developed a basic IPC with send and recievie and its been working for a while now.
its just a basic message queue with no blocking or waiting or anything, which ive tested and runs fine for about an hour
before failing. ive found that this is due to running alot of different tasks and not implementing blocking.
anyway ive did some research into how blocking would work and ive come up with this
when sending a msg, block the sender and unblock the reciever.
when receiving a msg, no blocking should occur until there is no messages left to receive.
when replying to a msg, unblock the sender.
and by the term blocking a mean stop the task from being scheduled.
is this the correct way to go about this and can anyone see any problems with this??
thanks