stevedlawrence commented on PR #879: URL: https://github.com/apache/daffodil/pull/879#issuecomment-1375637505
> I thought that when an event was queued for the peer co-routine, the main thread then would read from the reply queue, hence blocking itself until the peer replies back to it. > > That was the notion for how the two coroutines never overlap in doing work. > > Is it not functioning that way now? You are correct, this is how our coroutine implementation works. But because java doesn't support native coroutines, the non-main coroutine executes in a separate thread. So even though there is no real parallelism, we do still have to create threads. This PR attempts to reduce the overhead of creating those threads by reusing them from a thread pool. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
