Hi, Vince,��

I don't know exactly Pharo, but when you fork a process, it becomes an��independent thread of work. So in that process you��can send your async��call and wait for a response and then do the work. All inside the forked process.��
It's the smallalk's��scheduler that��will take care of passing control to other available (green) threads
So it's not clear from��me what you need. If you have many forked processes, each one will do is work up to��the end. No need to resume it from outside.��

hth
ciao

giorgio



On Thu, Jul 22, 2021 at 8:57 AM <vinref@gmail.com> wrote:

Can the Pharo VM or a library do a ���select��� on a collection of processes waiting on a socket or file IO? Something like https://man7.org/linux/man-pages/man2/select.2.html, or https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-select.

Say I have a bunch of forked processes and some will get blocked waiting for IO. I would put the blocked connections/processes in a collection and non-blocked processes can continue to do useful work. At some appropriate I would do a select on the blocked processes and resume those that are done.

Vince