Skip to content

Generate exceptions randomly, and from different threads #1

@frederic-perez

Description

@frederic-perez

First, using a single (main) thread, generate random numbers (taking advantage of C++11 features) to raise exceptions at random time. For example, something along these lines:

main() {
  for (size_t i = 0; i

Next, we can start N threads with a code similar to the above, and the exception message can include the thread ID. The main loop must wait for the competion of all the treads.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions