|
|
Subscribe / Log in / New account

The realtime preemption mini-summit

The realtime preemption mini-summit

Posted Sep 29, 2009 20:09 UTC (Tue) by mjthayer (guest, #39183)
In reply to: The realtime preemption mini-summit by aleXXX
Parent article: The realtime preemption mini-summit

> I mean, assume you have code like
>
> int get_foo(struct foo* f)
> {
> lock_mutex(&mutex);
> memcpy(f, &source, sizeof(struct foo));
> unlock_mutex(&mutex);
> }
That particular example could be solved by RCU, although I don't want to start a showdown here, as I'm sure you would win it :) I was thinking more on the lines of avoiding contention in the critical path as much as possible though.


to post comments

The realtime preemption mini-summit

Posted Oct 11, 2009 16:02 UTC (Sun) by efexis (guest, #26355) [Link]

Priority inheritance may often/usually not be the best way to do things by design (ie, try not to rely on it) sure, but is always better to have support for it to avoid inversion just-in-case, than not and have a Pathfinder style incident on your hands :-)


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds