A spinlock is a lock which causes a thread trying to acquire it to simply wait in a loop ("spin") while repeatedly checking if the lock is available.
Questions tagged [spinlock]
318 questions
-1
votes
3 answers
Is it required to use spin_lock inside tasklets?
As far as I know in interrupt handler, there is no need of synchronization technique. The interrupt handler cannot run concurrently. In short, the pre-emption is disabled in ISR. However, I have a doubt regarding tasklets. As per my knowledge,…

dexterous
- 6,422
- 12
- 51
- 99
-2
votes
2 answers
Handling Parallel Jobs/Threads
I'm trying to refactoring my project and now I'm trying to research for best ways to increase the application's performance.
Question 1. SpinLock vs Interlocked
To creating a counter, which way has better performance.
Interlocked.increament(ref…

Mahdi
- 31
- 1
- 5
-2
votes
1 answer
Replace critical section with boost::detail::spinlock cause dead lock on windows
My platform is vs2010 win2003 server, I have an application working well. There is an integer protected by a critical section, when I modify and use boost::detail::spinlock instead then it goes to dead lock.

magicyang
- 453
- 1
- 5
- 14