?
Solved

Events and signal handlers.

Posted on 2003-04-01
2
Medium Priority
?
289 Views
Last Modified: 2010-04-21
Hi,

I have got a signal handler which wakes up when a timer alarms (SIGALRAM), and needs to tell other thread to wake up. I started with using conditional variables, but they do not work with signal handlers.
Do you have suggestions? Would semaphore work?

Thanks a lot,
Liron.
0
Comment
Question by:slironm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
bkrahmer earned 80 total points
ID: 8251618
I ran into exactly the same problem.  What I ended up doing was writing a c++ class that acted like a Windows event object, but underneath the hood, it used pipes.  Pipes are a good solution, because they are extremely efficient to wait on or just check if the 'signal' has been sent.

cheers,
brian
0
 

Author Comment

by:slironm
ID: 8252601
Thanks a lot brian!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question