July 2017
Intermediate to advanced
244 pages
6h 33m
English
For the dispatcher code we looked at in Chapter 4, Threading Synchronization and Communication, we can set a breakpoint to allow us to examine the active threads as well:
$ gdb dispatcher_demo.exe GNU gdb (GDB) 7.9 Copyright (C) 2015 Free Software Foundation, Inc. Reading symbols from dispatcher_demo.exe...done. (gdb) break main.cpp:67 Breakpoint 1 at 0x4017af: file main.cpp, line 67. (gdb) run Starting program: dispatcher_demo.exe [New Thread 10264.0x2a90] [New Thread 10264.0x2bac] [New Thread 10264.0x2914] [New Thread 10264.0x1b80] [New Thread 10264.0x213c] [New Thread 10264.0x2228] [New Thread 10264.0x2338] [New Thread 10264.0x270c] [New Thread 10264.0x14ac] [New Thread 10264.0x24f8] [New Thread 10264.0x1a90]
As we can see ...
Read now
Unlock full access