kumars wrote: > It's giving me segmentation fault when I am trying to execute with following > options > > ./main -r 10 -w 4 -s 10 > > (here 'r' is the number of reader thread > 'w' is the number of writer thread > 's' is the size of bytes) > > But when I am exceuting it as follows it works fine > > ./main -r 10 -w 3 -s 10 > > Please look into it, why it's failing when I am trying to create 4 or more > number of writer threads.
Reproducible crash bugs should be fairly easy to diagnose: Build a debug version, run through 'gdb' (or, my personal preference, an IDE that uses gdb behind the scenes such as KDevelop). Let it crash and then walk back up the stack. This is a critical skill to have. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/
