5 ms·
Neither language has channels or selects baked in. Python does have threadsafe queues in the standard library, which you can use to coordinate work between thr
by dripton 13y ago
Neither language has channels or selects baked in.
Python does have threadsafe queues in the standard library, which you can use to coordinate work between threads and processes.
C doesn't come with anything like this, but you can use a library like ZeroMQ. The main Go compilers are written in C, so clearly anything Go can do C can do too -- but it'll be more work.