Methods and systems of testing an operating system are described. The operating
system is invoked to create a process, the process having a first thread. A test
function is repetitively executed in a first thread of the process. These steps
are repeated to create processes and to execute the test function in parallel and
repetitively in the first thread of the created processes until a given condition
is satisfied. For example, the given condition can be a condition in which the
operating system resources are exhausted.