Please don't post code to the Google group! You can send it to me
directly. Or ask me to look at it in your hw4 dir. That is usually
the better way, unless it is a very local problem.
Xinu has plenty of shared memory! All external variables are shared.
So the master array you need to set up for messages is shared.
The idea in receive is to block, not poll. You can block on a semaphore.
For the user-level system, you need one semaphore for the whole system for
mutex, *plus* one semaphore per active receiver (or active process slot)
for blocking.
For the kernel code, just replace the mutex sem with disable/restore.
Hope this helps. Let me know if you need more help.
> --
> Subscription settings:
http://groups.google.com/group/cs644s10_umb/subscribe?hl=en
>