Liste des Groupes | Revenir à cl c++ |
Am 13.04.2025 um 23:40 schrieb Chris M. Thomasson:I can understand it, but, well, shit happens. I would not say it's beautiful... But, that is just me. Again, shit happens.
You code is hard to read. ...The code is beautiful.
In real applications there is generally more going on in those critical sections vs your test... Well, I have seen some horror shows in my life.Signalling while locked or unlocked was an old debate. Think of signallingThe number of context-switches determined via getrusage() is twice per
while holding the lock. A thread gets woken and immediately sees that the
lock is held. Oh well. Wait morphing can help with that. However, signal
outside when you can...
loop iteration, i.e. on switch to the thread and one switch from the
thread; so everything is optimal with glibc.
Les messages affichés proviennent d'usenet.