Rendezvous: Difference between revisions

Content added Content deleted
m (→‎Pthreads implementation: Fix header level)
m (→‎OpenMP implementation: Fix header level)
Line 461: Line 461:
</lang>
</lang>


== OpenMP implementation ==
=== OpenMP implementation ===
Basically just synched threads doing printing: since task didn't ask for service type or resource enumeration, and "message passing is stupid" (c.f. talk), the guarding thread is no more than a glorified mutex, hence completely cut out, leaving the threads directly check ink and do print.
Basically just synched threads doing printing: since task didn't ask for service type or resource enumeration, and "message passing is stupid" (c.f. talk), the guarding thread is no more than a glorified mutex, hence completely cut out, leaving the threads directly check ink and do print.
<lang C>#include <stdio.h>
<lang C>#include <stdio.h>