Dear all,
Is there any means that the process will release all the semaphore which the process locked before when the process is dead accidentally?
Benson
http://www.experts-exchange.com/Programming/System/Unix_-_Posix/Q_10145747.html
Hi all,
This has been bugging me all night. I have an application in which the user has to click an action on the screen before a timer goes off. When the timeout occurs, I want to block all fur...
http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_20912058.html
Zones:
JavaScriptDate Answered: 03/10/2004 Grade: A Views: 0
Can anyone show me where I would add semaphores to this to ensure it always will print ready, then set, then go?
#include <iostream.h>
#include <pthread.h>
using namespace std;
void *ready(...
http://www.experts-exchange.com/OS/Miscellaneous/Q_21167380.html
Hi!
Any Idea on how to implement the Semaphore below!
public class StundentLists extends Thread {
Lists listsHH;
Semaphore sema;
public StundentLists(Lists b) {
listsHH ...
http://www.experts-exchange.com/Programming/Languages/Java/Q_21403967.html
I have some JS code that I'm concerned about concurrency issues. Do anyone know of some code that will allow me to protect a critical section in JS? I've tried to google on how to create any of t...
http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_21454201.html
Zones:
JavaScriptDate Answered: 07/21/2005 Grade: B Views: 0
Hi all,
I have 2 threads : thread1 and thread2. How can I use semaphore to make sure thread1 will always run before thread2? Thanks a lot for details and explainations.
http://www.experts-exchange.com/Programming/Languages/C/Q_21865355.html
Zones:
CDate Answered: 07/05/2006 Grade: A Views: 8
I have a create and delete semaphore problem. I've googled and found that semaphores seem to be a no-no, but this code has it in it.
Is there a correction for this ?
You help appreciated.
--...
http://www.experts-exchange.com/Programming/Languages/CPP/Q_22119117.html
Zones:
C++Date Answered: 01/11/2007 Grade: A Views: 0
Hi,
I have the following code:
*******************************************************
/*Here the two thread-functions*/
int _tmain(int argc, _TCHAR* argv[])
{
// initialisation des options ...
http://www.experts-exchange.com/Programming/Languages/CPP/Q_22123464.html
Hello all,
can somebody please explain to me why the output of this program is :
child
parent
child 2
parent 2
child
parent
child2
parent 2
.......
and not
child
child 2
pare...
http://www.experts-exchange.com/Programming/System/Unix_-_Posix/Q_22132280.html
Hi,
I am working on THREADING in VB.NET 2003. I want to know the basic functionality of "Semaphore" with an example. Can you please provide me brief explanation and sample code about it ? Please...
http://www.experts-exchange.com/Programming/Languages/.NET/Visual_Studio_.NET_2005/Q_22862...