On Thu, 23 Jan 2003, Fabio Alemagna wrote: > If an application requires access to a resource, it tries to acquire it, > and if that resource is already acquired in an exclusive way by anoter > application then it will have to wait for the other one to release it.
Oops, I knew I was going to forget something... How to implement this "acquiring"?, you ask. Well, there are two ways that come to my mind: either use SYSV semaphores, or simple handmade mutexts which work on memory shared amongst all ggi applications. The 1st ggi application to run would allocate this shared memory, all the other ones would use it. This shared memory would also serve as central repository of all the other informations that need to be shared amongst the ggi applications, by use of the ggi libraries and targets. If any of those mechanism is lacking, any other equivalent mechanism which is available on the host machine can be used. On AmigaOS I'd use exec's semaphores, but then again on AmigaOS ggi would use the available screen's concept... Fabio Alemagna
