Nested ManagedBlockers are benign?
Roman Leventov via Concurrency-interest <[email protected]>
| Newsgroups | gmane.comp.java.jsr.166-concurrency |
|---|---|
| Message-ID | <CAAMLo=YYcHGJyHgxymkoVWEkpopQWLkD4H4pnp3XHDBJL4vWfA@mail.gmail.com> |
Does calling FJP.managedBlock() within another FJP.managedBlock() call usually or always not cause an additional thread to spin up the second compensation thread needlessly? I ask because I proposed a widely used HTTP client library to wrap blocking network calls transparently for users: https://github.com/square/okhttp/issues/5655, but now I'm not sure it is a good idea if there are some users who already wrap the calls to the library themselves with FJP.managedBlock(), who might then be penalized for their own prudence if nested ManagedBlockers start extra threads. _______________________________________________ Concurrency-interest mailing list [email protected] http://cs.oswego.edu/mailman/listinfo/concurrency-interest