[Gambas-user] Dining philosophers problem - semaphore , interprocess shared memory concepts using GAMBAS ?

Vinode Singh Ujlain ujlain at gmail.com
Tue May 28 09:02:43 CEST 2019


I coded a small 3 dining philosophers example (see attachment)
My concern yet is - forks are a shared resource between the processes 
(here philosophers) , how is GAMBAS enforcing atomicity of access to 
this shared resource ?

Regards  - UZI
------------------------------------------------------------------------
On 24/05/19 11:08 AM, Vinode Singh Ujlain wrote:
>
> Dining philosophers problem is one that most of us have coded during 
> graduation / post graduation courses.
> It amply teaches semaphore , interprocess shared memory concepts.
> Has anyone in this forum attempted this using GAMBAS ? I am keen to 
> learn the equivalent of semaphore & shared memory as implemented in GAMBAS
> *Any directions ? *
>
> Regards  - UZI
>
> ------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190528/1cd7ca02/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Dining Philosopher.zip
Type: application/zip
Size: 35551 bytes
Desc: not available
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190528/1cd7ca02/attachment-0001.zip>


More information about the User mailing list