Search Results

Search: Posts Made By: kmehta
Forum: Programming 12-06-2008
10,041
Posted By kmehta
pthread_rwlock_lock vs pthread_mutex_lock
I have been wondering what the difference between pthread_rwlock_lock and pthread_mutex_lock is. Both these routines acquire an exclusive rw lock on an enclosed region.

So I performed a simple...
Forum: Programming 09-25-2008
5,789
Posted By kmehta
Got it. Thank you.
Got it. Thank you.
Forum: Programming 09-25-2008
5,789
Posted By kmehta
Thats not what I am looking for. I have written a...
Thats not what I am looking for. I have written a C program that spawns posix threads using pthread_create. I want to programmatically get the no. of threads spawned by the program at some instance...
Forum: Programming 09-24-2008
5,789
Posted By kmehta
Get the no. of threads spawned in a C program
Hello
Is there a way to get the no. of threads spawned by a program in C?
There is no function in pthread.h that does this. :(
Forum: Programming 09-21-2008
9,229
Posted By kmehta
I get it. Thanks a lot for your help. --...
I get it.

Thanks a lot for your help. -- Kshitij
Forum: Programming 09-21-2008
9,229
Posted By kmehta
I am not sure I understand. But you were right,...
I am not sure I understand. But you were right, if the above code is placed in the main() function, it works fine, but if I place it in a separate function and call this function from main(), it...
Forum: Programming 09-20-2008
9,229
Posted By kmehta
Creating an array to hold posix thread ids: Only dynamic array works
I am facing a strange error while creating posix threads:
Given below are two snippets of code, the first one works whereas the second one gives a garbage value in the output.

Snippet 1
This...
Showing results 1 to 7 of 7

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