多线程模式下全局变量竞争

Posted by 夏泽民

优点:在一个进程内的所有线程共享全局变量,很方便在多个线程间共享数据



no debugging symbols found

Posted by 夏泽民

$ gdb golint_exe GNU gdb (GDB) 7.12.1 Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type “show copying” and “show warranty” for details. This GDB was configured as “x86_64-apple-darwin15.6.0”. Type “show configuration” for configuration details. For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/. —Type to continue, or q to quit--- Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from golint_exe...(no debugging symbols found)...done. Loading Go Runtime support.



runtime-gdb.py

Posted by 夏泽民

(gdb) source /Users/didi/goLang/src/github.com/golang/go/src/runtime/runtime-gdb.py Loading Go Runtime support. Traceback (most recent call last): File “/Users/didi/goLang/src/github.com/golang/go/src/runtime/runtime-gdb.py”, line 27, in goobjfile = gdb.current_objfile() or gdb.objfiles()[0] IndexError: list index out of range 原因: 必须先 gdb program 然后source才可以,



流水线冒险及解决方法

Posted by 夏泽民

由于一段机器语言程序的邻近指令之间出现了某种关联后,为了避免出错而使得它们不能同时被解释的现象,又称相关冲突。



服务自动发现

Posted by 夏泽民

先看下consumer端发起调用时的链路流程:



Search

Popular posts

Anything in here will be replaced on browsers that support the canvas element

Recent posts

This blog is maintained by 夏泽民

Get in touch with me at 465474307@qq.com

Subscribe to our mailing list

* indicates required