linux下定时器耗时研究
摘要:#include <time.h> #include <chrono> #include <unistd.h> #include <iostream> using namespace std; int main() { int sum = 0; auto t = std::chrono::high_
阅读全文
posted @
2020-11-29 19:02
SimbaStar
阅读(170)
推荐(0)
centos7下tcp缓冲区的学习
摘要:几个结论: 1. linux查看tcp缓冲区参数命令: cat /proc/sys/net/ipv4/tcp_wmem # 写缓冲区大小4096 16384 4194304 # 分别表示最小值,默认值,最大值cat /proc/sys/net/ipv4/tcp_rmem # 读缓冲区大小4096 8
阅读全文
posted @
2020-11-19 22:53
SimbaStar
阅读(1204)
推荐(0)
linux下errno和windows下getlasterror()
摘要:结论是:两者都是线程安全。 1. getlasterror 参考微软官方文档说明如下: GetLastError function (errhandlingapi.h) Retrieves the calling thread's last-error code value. The last-er
阅读全文
posted @
2020-11-10 15:46
SimbaStar
阅读(3032)
推荐(0)