diff --git a/posix/passing_args.md b/posix/passing_args.md index b53e547..006a7b1 100644 --- a/posix/passing_args.md +++ b/posix/passing_args.md @@ -11,12 +11,11 @@ All arguments must be passed by reference and cast to `(void *)`. Question: Given their non-deterministic start-up and scheduling, how can you safely pass data to newly created threads? - +
Answer (Click to view.) *Make sure that all passed data is thread safe - that it can not be changed by other threads. The three examples that follow demonstrate dos and don'ts.* - - +
#### Example 1 - Thread Argument Passing