|
From: Polina D. <pd...@gm...> - 2008-12-05 20:57:54
|
Hi, This relates back to my question about making threads switch more often. The reason for that is that I need to have data races. But I found the link to helgrind which talks about data races. What I am not clear about is how can data races occur if threads are serializes. Does helgrind use a logical clock? Thank you. Polina |
|
From: tom f. <tf...@al...> - 2008-12-05 21:09:21
|
"Polina Dudnik" <pd...@gm...> writes: > This relates back to my question about making threads switch more > often. The reason for that is that I need to have data races. But I > found the link to helgrind which talks about data races. What I am not > clear about is how can data races occur if threads are serializes. See: http://www.cs.washington.edu/homes/tom/pubs/eraser.pdf Briefly, it doesn't check that two threads access the same data at the same time, it checks if two threads access the same data while holding different lock sets. -tom |