This PR addresses issue #9878 by optimizing the maybeUnparkWorker mechanism in ZScheduler to reduce excessive park/unpark cycles.
The scheduler was calling LockSupport.unpark too frequently in the hotpath, causing performance degradation. Each call involves expensive CAS operations and thread signaling.
Implemented a state-based batching mechanism in maybeUnparkWorker:
LockSupport.unpark calls by coalescing requestsZScheduler.scala to add batching logic in maybeUnparkWorkerFixes #9878
/claim #9878
Abu1982
@Abu1982
ZIO
@ZIO