I have a process running several threads communicating with software and hardware components.
Simulation of disconnect and timeout is required for testing purposes. Process execution hold simulates communication timeout of all sub components. Currently this can be done by running in debug mode and setting a break point. While in break point, all threads are held from execution and all timeouts occur. But in automated test, breakpoints are not an option.
How can the whole process including all running threads be held for x seconds?
Edit #1: I'm looking for a generic way to hold execution of the whole process including all running tasks (threads) - a true break point behavior without a break point. And than an automated way to resume process.
Edit #2: This question's answer might work. Seems that some adjustments required.