Overview
| Artifact ID: | 03d1eec9e58d78200f8f8fe0c9b31f73d2627b12 |
|---|---|
| Ticket: | 8bd13f07bde6fb0631f27927e36461fdefe8ca95
Closing tcl pipes prevents windows threads from starting up |
| User & Date: | sebres on 2017-05-05 14:45:42 |
Changes
- icomment:
Interim status: the bug "R6016" is fixed now (must be still rebased & pushed to fossil), but... But, as a result of new implementation of the pipe-workers (like a pool with reusable threads), it is also very fast now and I get race condition by multi-threded execution somewhere round about process-end. Just to compare (10 threads using "tpool", exec cmd /c echo test): ## == new version (very fast, but with sporadic "race-conditional" error): ***tid2F34--ERROR:child process exited abnormally while executing "exec $env(COMSPEC) /c echo test 2>@1" invoked from within "time {exec $env(COMSPEC) /c echo test 2>@1} 100" ******** end ... ***tid151C--42278.33 microseconds per iteration ***tid1E50--42476.65 microseconds per iteration ***tid27DC--42676.75 microseconds per iteration ***tid294C--42818.5 microseconds per iteration ## == old version (slow, but always without errors): ***tid24C0--379016.0423759178 microseconds per iteration ***tid1F2C--380512.505328907 microseconds per iteration ... ***tid11F4--395925.6099012296 microseconds per iteration ***tid1F1C--398007.4137968089 microseconds per iteration ***tid2B2C--398003.92374362086 microseconds per iteration Not reproduceable with fewer threads on my mashine (should be >= 10). If someone have any idea - welcome... - login: "sebres"
- mimetype: "text/plain"