It is safer to use _beginthreadex than _beginthread. If the thread generated by _beginthread exits quickly,
the handle returned to the caller of _beginthread might be invalid or, worse, point to another thread. However,
the handle returned by _beginthreadex has to be closed by the caller of _beginthreadex,
so it is guaranteed to be a valid handle if _beginthreadex did not return an error.
SXQgaXMgc2FmZXIgdG8gdXNlIF9iZWdpbnRocmVhZGV4IHRoYW4gX2JlZ2ludGhyZWFkLiBJZiB0aGUgdGhyZWFkIGdlbmVyYXRlZCBieSBfYmVnaW50aHJlYWQgZXhpdHMgcXVpY2tseSwgCnRoZSBoYW5kbGUgcmV0dXJuZWQgdG8gdGhlIGNhbGxlciBvZiBfYmVnaW50aHJlYWQgbWlnaHQgYmUgaW52YWxpZCBvciwgd29yc2UsIHBvaW50IHRvIGFub3RoZXIgdGhyZWFkLiBIb3dldmVyLCAKdGhlIGhhbmRsZSByZXR1cm5lZCBieSBfYmVnaW50aHJlYWRleCBoYXMgdG8gYmUgY2xvc2VkIGJ5IHRoZSBjYWxsZXIgb2YgX2JlZ2ludGhyZWFkZXgsIApzbyBpdCBpcyBndWFyYW50ZWVkIHRvIGJlIGEgdmFsaWQgaGFuZGxlIGlmIF9iZWdpbnRocmVhZGV4IGRpZCBub3QgcmV0dXJuIGFuIGVycm9yLg==