我需要在CPU的同一核心上运行两个程序.第二个程序总是在另一个核心上运行,因为第一个程序使用第一个核心的50%.如何强制Linux在核心上运行程序?
我正在尝试分析核心转储,但我得到了以下结果.
如果我使main.elf静态链接一切正常,我可以看到所有线程的bt.有任何想法吗?
GNU gdb 6.6.0.20070423-cvs
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=mipsel-linux --target=mipsel-linux-uclibc".
(gdb) file main.elf
Reading symbols from /home/tobi/main.elf...Reading symbols from /home/tobi/main.dbg...done.
done.
(gdb) core-file /srv/tobi/core
warning: .dynamic …Run Code Online (Sandbox Code Playgroud)