[Gambas-user] Receiving events on an array of process objects

PICCORO McKAY Lenz mckaygerhard at gmail.com
Fri May 25 15:00:35 CEST 2018


2018-05-25 9:03 GMT-04:00 Tobias Boege <taboege at gmail.com>:

> What really happens is that you fork() a lot of processes, which execve()
> the program that you specify in the EXEC instruction. Those are separate
> processes now whose three main file descriptors are linked into the main
> Gambas process via pipes (depending on whether you Exec For Read|Write).
> Gambas takes those file descriptors and watches them in its event loop.
>
> It is like opening multiple sockets at the same time. You get an event
> when any of them has data for you. If all of them have the same event
> name, those events happen to be raised with the same prefix. No threads
> are involved and there is no concurrent execution of Gambas code.
>

GRRR works like pascal or ANSI C! ok got it!


>
> Regards,
> Tobi
>
> --
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20180525/5c285e17/attachment.html>


More information about the User mailing list