原创 計算機精品書單
前言 經常有讀者讓我推薦書籍,這次我就把我私藏的計算機書單分享給你們!不過由於時間匆忙,不會進行更加詳細的介紹。 聲明 由於每個人的情況不一樣,推薦的書並不一定適合你,也不一定適合當前階段的你,有的書籍可能存在內容重複,所以根據自己的階段
原创 Dangers of using dlsym() with RTLD_NEXT
Background There are times when you want to wrap a library function in order to provide some additional functionality.
原创 Rename a local and remote branch in git
Rename a local and remote branch in git If you have named a branch incorrectly AND pushed this to the remote reposi
原创 神奇的container_of
linux內核裏面有個container_of 方法(準確的說是個宏),可以根據結構體的某個字段的指針求得整個結構體的指針,感覺蠻新穎的,摘錄下來。 #include <stdio.h> #define offsetof(typ
原创 Beej's Quick Guide to GDB
Release 2 (2009 Jun 14) This is a very quick-and-dirty guide meant to get you started with the GNU Debugger, gdb, from
原创 CS:APP3e 深入理解計算機系統_3e CacheLab實驗
詳細的題目要求和實驗資源可以到教材官網 或者 課程官網 獲取。 本次實驗難點在Part B的64 * 64部分,主要介紹這一部分。 Part A: 編寫緩存模擬器 前期準備: getopt和fscanf系列庫函數對於這次實驗很重要,不
原创 C語言中的關鍵字
volatile Declare global variables with volatile. Consider a handler and main routine that share a global variable g. Th
原创 HTTP壓測工具之wrk
wrk是一款簡單的HTTP壓測工具,託管在Github上,https://github.com/wg/wrk. wrk 的一個很好的特性就是能用很少的線程壓出很大的併發量. 原因是它使用了一些操作系統特定的高性能 io 機制, 比如 s
原创 Mac下Virtualbox Ubuntu 設置共享目錄
環境 Mac ,Ubuntu19,Virtualbox 設置mac主機的共享文件夾,這裏共享文件夾的名字是share,固定分配和自動掛載都選上,免得每次重啓都得重新掛載。 Install Guest Additions
原创 網絡資源收藏
學習資源 慕課網(進世界一流大學升級) https://www.edx.org/ 網絡技術書籍 https://learning.oreilly.com/ 鳥哥的Linux私房菜:http://linux.vbird.org/
原创 Tmux Tutorial — Split Terminal Windows Easily
Terminal and Terminator It was long time ago when I realized that the major part of my work is being done in the Linu
原创 Linux好書、經典書籍推薦
思想篇 《Linux/Unix設計思想》 圖書將Unix與Linux的原理有效地結合起來,總結了Unix/Linux軟件開發中的原則。在保留了第1版中Unix方面的內容的同時,強調了Linux和開源領域的新思想。
原创 LFU 與 LRU
A least frequently used (LFU) policy will replace the line that has been referenced the fewest times over some past tim
原创 深入理解計算機系統shell lab - 一個簡單shell的實現
/* * tsh - A tiny shell program with job control * * <Put your name and login ID here> */ #include <stdio.h> #incl
原创 深入理解計算機系統 第二章實驗data_lab
/* * CS:APP Data Lab * * <Please put your name and userid here> * * bits.c - Source file with your solutions to