Description:
All issues about multithreaded programming.
|
|
|
implementing V() / signal()
|
| |
Why would this function need to do anything other than increment the semaphore? I can see why P() needs to decrement then wait -- but is there a need for V() to context switch on sem <= 0 etc? TIA
|
|
Would this work on even one platform?
|
| |
Here is simple example: static char string[] = "XXXXX XXXXX"; static bool volatile done = false; static pthread_mutex_t mutex; void thread_1() { strcpy(string, "Hello World"); pthread_mutex_lock(&mutex); pthread_mutex_unlock(&mutex); done = true; ...void other_threads() { do { pthread_mutex_lock(&mutex);... more »
|
|
my understanding of acquire/release/etc
|
| |
I find myself increasingly explaining to others my view of the memory model, CPU architecture, etc relating to lock free programming. I'm starting to think I better do a 'sanity check' before more people come asking. So here it is in (hopefully) a nutshell: I tend to give people a picture revolving around the CPU requesting... more »
|
|
Cheap Real Nike Jordan Shoes, Cheap Ice Cream shoes, Woman Nike shox,wholesale jordan from china
|
| |
vipshoeshop Co.,Ltd( [link] ) wholesale cheap jordan shoes,buy New arrival nike jordan sneakers,discount nike kids series shoes,mix jordan sneakers,custom nike sb dunks,gucci tennis shoes for discount, sell jordan sneakers for men's women's kids,cheap nike trainers retro shoes,nike dunks premium sb,cheap nike zoom kobe 4... more »
|
|
user-space RCU implementation in Relacy 2.0
|
| |
This code: [link] simulates a user-space RCU algorithm that is driven by a polling thread. Reader threads simply execute a synchronization operation on a episodic/periodic basis. Or, the reader threads can dynamically "opt-out" of the RCU polling process altogether. A reader thread would only do this... more »
|
|
sem_post() and signals
|
| |
Hello, sem_post() is a signal safe function, which means that it's normally heavier to use than mutexes. However, I took a look to its implementation on Linux, and I don't see where is the actual cost. Below is the implementation on Linux, and there's nothing about signals here. Could anybody tell me if semaphore are really expensive ?... more »
|
|
pthread_cond_wait segmentation fault
|
| |
I tried to make a producer of 'items' but my implementation crashes at pthread_cond_wait ... I really tried looking at everything and put print statements throughout my code, but there it just crashes. I did put the wait within a mutex. This code isn't complete, but the relevant parts are in there (I assume). Any idea what I did wrong?... more »
|
|
discount nike tennis shoes gucci tennis shoes D&G sneaker lacoste trainers
|
| |
Welcome to visit [link] hottest Nike Shoes, Nike Jordans, Nike Air Jordans, Air Jordan Fusion,Sell nike shoes air jordan,Jordan fusions,Air jordan women fusins,AJ fusions,AJ Fusions low,cheap Prada shoes, Gucci shoes, Adidas shoes, Nike shoes, Puma shoes,Cheap brand jeans:Coogi pants, Evisu jeans, RMC jeans, Crown Holder, Aftful Dodger... more »
|
|
|