Do child threads exit when the parent thread terminates

There is no parent/child relationship between threads. If thread A creates thread B and then thread A terminates, then thread B will continue to execute. The exception to this is when the main thread (that is, the thread that runs the main() function) terminates. When this happens, the process terminates and all other threads stop.

C++ high precision time measurement in Windows

If you have a threaded application running on a multicore computer QueryPerformanceCounter can (and will) return different values depending on which core the code is executing on. See this MSDN article. (rdtsc has the same problem) This is not just a theoretical problem; we ran into it with our application and had to conclude that … Read more

How to get chrome version using command prompt in windows

As of today user4851’s is still working. I took a look at his linked bug report and the proposed work around did not work for me anymore. Anways a new hkey is present in my directory which allows you to query the chrome version without being aware of the actual installation location: reg query “HKEY_CURRENT_USER\Software\Google\Chrome\BLBeacon” … Read more

Qt5 Static Build yields Failed to load platform plugin “windows”

For dynamic build only: Make sure you move the qwindows.dll to the following directory: yourapp.exe Qt5Core.dll … platforms/qwindows.dll … Note that the plugins directory is missing! You put all the needed folders from QT_BASE/…/plugins/* directly together with your binaries. BTW: I did not need libEGL.dll, but my application almost has no GUI. My source: http://qt-project.org/forums/viewthread/27056/#122588

Windows Kill Process By PORT Number [duplicate]

Solution 1: Kill Process Run command-line as an Administrator netstat -ano | findstr :<yourPortNumber> taskkill /PID <typeyourPIDhere> /F Solution 2: Change Port Please Make sure that new port you are going to set for your Application doesn’t listen to any other process Change the port server.port=8088 # Server HTTP port. Solution 3: Another way is … Read more