10-26-2001
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Can anyone explain me what mutexes are in
multithreading environment? (2 Replies)
Discussion started by: sagar
2 Replies
2. Shell Programming and Scripting
A shell in crontab per 5 min write a file
B shell in crontab per 6 min read a file
how to lock the share file a ;avioid confilict in write and read?
Thx : -) (1 Reply)
Discussion started by: zz_xm
1 Replies
3. Programming
Hi, I have two tasks 'Read' and 'Write' which reads and writes on a file "abc.txt" respectively.
Now I need to restrict the Write operation on the file while Read is going on, But can allow two Reads at a time.
ie. two Reads can happen simultaneously, but Write can't happen at Read is going on.
... (3 Replies)
Discussion started by: satheeshalle
3 Replies
4. Programming
Hi,
can someone explain me the difference between mutex and semaphores?
Thanks (1 Reply)
Discussion started by: rvan
1 Replies
5. UNIX for Dummies Questions & Answers
can u tell me what is the exact difference b/w mutex and semaphore
and what is the diff b/w counting semaphore and binary semaphore
amit (1 Reply)
Discussion started by: amitpansuria
1 Replies
6. Shell Programming and Scripting
Hello Everyone,
I just joined this forum and this is my first post.
I would like to know how can I impliment basic read/write locks in perl. I have a database (file) which can be accessed simultaneously but has to be locked while writing.
If there is no such support in perl, my next... (6 Replies)
Discussion started by: superuser84
6 Replies
7. Programming
I am trying to use mutex in my multi-tread project, but they don't seem to work.
I have created a simple demonstration of the problem. This is NOT how I would use a mutex, only a demonstration of the problem:
#include <stdio.h>
#include <pthread.h>
int main()
{
int val;
... (3 Replies)
Discussion started by: ChrisWilliams
3 Replies
8. Programming
Hi all,
I have a scenario where I need to use the mutex locks. The mutex locks are working fine, but sometimes I am getting into the dead lock situation.
Below is the summary of my code :
MUTEX LOCK
performTask();
MUTEX UNLOCK.
In some cases I get into the situation where... (2 Replies)
Discussion started by: cjjoy
2 Replies
9. Programming
Hi All,
To avoid race condition, instead of using mutex, semaphore, spinlock etc.... Is there any other mechanism by which we can avoid race condition in an multi-threading environment.
-Thanks (6 Replies)
Discussion started by: rvan
6 Replies
10. Programming
Using pthreads is there a way to determine how many threads are waiting on a locked resource? I mean, once a shared resource is protected using e.g. pthread_rwlock_t or pthread_mutex_t one thread grabs the lock and other threads will go to sleep waiting for the resource to be available again. Is... (0 Replies)
Discussion started by: muggu
0 Replies
Portable Threads Abstraction Classes(3) Coin Portable Threads Abstraction Classes(3)
NAME
Portable Threads Abstraction Classes -
Classes
class SbBarrier
The SbBarrier class implements the 'barrier' multi-thread synchronization technique.
A barrier is a synchronization mechanism that is used for blocking threads as they enter the barrier until a given number of threads are
blocked, at which point all the threads are released again. "
class SbCondVar
A class for synchronizing access to global variables.
Condition variables are used to protect global variables in an environment where multiple threads are running concurrently. "
class SbFifo
A class for managing a pointer first-in, first-out queue.
class SbMutex
A basic class for managing a mutex.
This class provides a portable framework around the mutex interface of the underlying native thread-handling toolkit. "
class SbThreadAutoLock
Simple convenience class for locking access to a function.
This class provides a simple convenience mechanism for automatically locking access to a function that is not re-entrant. "
class SbRWMutex
class SbStorage
The SbStorage class manages thread-local memory.
This class manages thread-local memory. When different threads access the memory an SbStorage object manages, they will receive different
memory blocks back. "
class SbTypedStorage< Type >
The SbTypedStorage class manages generic thread-local memory.
This class manages thread-local memory. When different threads access the memory an SbTypedStorage object manages, they will receive
different memory blocks back. "
class SbThread
A class for managing threads.
This class provides a portable framework around the tasks of instantiating, starting, stopping and joining threads. "
Detailed Description
Coin implements a set of abstractions over the native threads data types that can be portably used across all the platforms Coin has been
ported to.
Author
Generated automatically by Doxygen for Coin from the source code.
Version 3.1.3 Wed May 23 2012 Portable Threads Abstraction Classes(3)