|This is how it’s done in
Windows. Some parameters default (security attributes, stack size).
|Thread handle is returned.
To be deallocated using CloseHandle. It’s a resource.
|Thread id is created. Some
APIs use thread id to identify the thread (for instance, in another process).
|Thread procedure must have
the above signature. It takes void pointer to client-defined data and returns