Search Results

Search: Posts Made By: sanjayc
Forum: Programming 03-20-2012
5,295
Posted By sanjayc
please post the valgrind output. it might help...
please post the valgrind output. it might help others understand the problem and also help them understand how it would look for larger programs. just a suggestion
Forum: Programming 03-20-2012
9,068
Posted By sanjayc
pthread question : global variable not updated
Hi,
I wrote the following program to understand mutexes. If I run the program , number of threads is shown as zero, even after creating one thread. When running with gdb, it works fine.

The...
Forum: Programming 03-19-2012
1,087
Posted By sanjayc
design query: where to lock mutex for function accessing global value?
Hi,
Suppose I have a function that accesses and increments a global variable . This function is run as part of thread. One locks mutex in the function and unlocks it after the processing is done....
Forum: Programming 03-19-2012
5,295
Posted By sanjayc
Hi, did you use any tools to detect the memory...
Hi, did you use any tools to detect the memory leak source ( say valgrind)?
Forum: Programming 03-19-2012
1,384
Posted By sanjayc
Thanks murphy. I have been following that...
Thanks murphy. I have been following that tutorial. I should probably check out the books in the reference links. Thanks Jim, murphy. It makes sense now.
Forum: Programming 03-18-2012
1,384
Posted By sanjayc
pthread_exit query
Hi,
I am new to multithreaded programming. When creating a thread to run a specific function, does the function need to have a pthread_exit ?

Is pthread_exit analogous to a return in a function?
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 04:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy