🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.transputer
1 messages
1 total messages Started by BIOMED06 Thu, 11 Aug 1988 17:08
Parallel-C and the use of events: HELP ...
#2162
Author: BIOMED06
Date: Thu, 11 Aug 1988 17:08
32 lines
1477 bytes
Problems using the Event in 3L Parallel C:
     
We are using a Transputernetwork for some Realtime-Signal-Processing.
To synchronize our software-processes with the surrounding hardware we intend
to use the Event-Request. The transputer-pin Event is connected with a
periodic timersignal (period = 5..800 ms).
     
1. Question:
-----------
Is the following function correct?
     
#include <chan.h>
     
void synchronize()
{
        char ch;
     
        chan_in_byte(&ch, EventReq);
        chan_in_byte(&ch, EventReq);
}
     
2. Question:
-----------
Has anybody experience using Event in Multithreaded tasks.
We are synchronizing the different threads using the semaphore functions of
Parallel C.
As long as we do not synchronize the hole task with the hardware using event,
all threads proceed. Otherwise several threads do not get their start
semaphores, allthough the sema_signal() function has been called in the
main thread with the right arguments.
The system behaves like some semaphores would get corrupted by the
synchronize() function.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads