Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Spinlock and starvation...

1 view
Skip to first unread message

aminer

unread,
Sep 23, 2013, 8:31:10 PM9/23/13
to

Hello,

Finally , i have read the following, and it says this:

"Starvation freedom is desirable, but not essential
�practical locks: many permit starvation, although it is unlikely to occur"

read here:

http://www.cs.rice.edu/~vs3/comp422/lecture-notes/comp422-lec19-s08-v1.pdf

So as you have just read , starvation is unlikely to occur with spinlock
eith backoff, so the probability is
very low that starvation occurs, so i will return back to the Spinlock
with exponential backoff inside my SemaMonitor and SemaCondvar cause it
has a decent performance.



Thank you,
Amine Moulay Ramdane.








aminer

unread,
Sep 23, 2013, 8:46:11 PM9/23/13
to



And look at the graph of the "Lock comparison" up to 80 cores
the test&set with an exponential backoff have a good performance,
so no need for an MCS queue Lock, so i will return back to
the SpinLock with an exponential backoff cause it has a good performance.

Here is the graph bellow on this PDF page:

http://www.cs.rice.edu/~vs3/comp422/lecture-notes/comp422-lec19-s08-v1.pdf




Thank you,
Amine Moulay Ramdane.

0 new messages