on-internet
← Community

How do I make a signal jump to a label instead of performing a function call for the signal handler?

Stack Overflow ·

My C program performs many tasks every second. There can be less CPU threads available than the number of tasks. I can create a separate thread for each task, but want to make it as low latency as possible. This involves manual preemptive scheduling. I have a task queue in memory, arranged in ascending order of priority. Each thread executes a task (atomically thread synchronized). Once the task requires to sleep until the next interval it executes other tasks. The main function periodically throws a signal to all threads indicating that a new second started (or will start) and all tasks need

Comments

Sign in or sign up to comment and upvote.

No comments yet.