python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Do pushcli() and popcli() in the spinlock of XV6 need atomic?
As learning XV6's spinlock,I thought a problem and don't find answer in google.
In spinlock, pushcli() and popcli() used to insure interrupt handler run currently:
void pushcli(void)
{
int eflags;
...
wcyiming
Votes: 0
Answers: 1
Spinlock code using atomic_flag in C++ is not compiling in Mac
I tried to write a simple Spinlock code in C++ but the code is not getting compiled in the Mac but is compiling on other gcc compilers.
#include<iostream>
#include<thread>
#include<atom...

Mrigank Prasoon
Votes: 0
Answers: 1
Why SpinLock doesn't support recursion
I wonder why SpinLock doesn't support recursion.
Let's say I have a simple program with Monitor that locks and releases a block of instructions in a recursive way:
class Program
{
private static r...

Qwertyluk
Votes: 0
Answers: 0
Implementing Spin lock vs. Win32 Critical section
I'm trying to optimize Win32's CRITICAL_SECTION for more "complex" synchronization primitives, where I don't need the reentrance feature of the critical section. So here's my spin lock so fa...
mrzacek mrzacek
Votes: 0
Answers: 0