/home.jpg

git操作

基本使用 账户设置 git config --global user.name "Your Name" git config --global user.email "email@example.com" ssh-keygen -t rsa -C "youremail@example.com" 在用户主目录里找到.ssh目录,里面有id_rsa和id_rsa.pub两个文件,这两个就是

Ubuntu宕机解决方法

重启 按住 Alt + PrtSc 不放 然后依次按 reisub 详情 键盘上一般都有一个键SysRq, 和PrintScreen(截屏)在一个键位上,这就是系统请求的键。 这个方法

Ubuntu终端音乐播放器moc

安装 sudo apt-get install moc 安装完成后在终端自下输入:“mocp”打开moc 配置 新建或打开 ~/.moc/config 配置以下内容 ReadTags = no Theme = yellow_red_theme Sort = FileName ShowStreamErrors = no Mp3IgnoreCRCErrors = yes Repeat = yes Shuffle = no AutoNext = yes FormatString =

人生道理? 鸡汤??

1、如果你找不到一个坚持的理由,你就必须找到一个重新开始的理由。 2、我们每一个人的一生中都会难免有缺憾和不如意,也许我们无力改变这个事实,而

CPU调度

多进程与多线程的提出根本上是为了做大化CPU的利用率,调度也是如此 多数程序都是通过IO读取数据,之后经过CPU的运算后再通过IO输出,基本就

线程

进程的特点是分离,而线程的特点是不分离。 使用线程可以提高程序的响应性,一般将耗时的任务单独交给一个线程去完成。 进程与进程之间的资源是完全独立

进程

主要研究进程对CPU是如何管理的 进程状态 A process includes: program counter and other registers stack heap data section text section Process States: new ready (就绪态) runing (运行态) waiting (阻塞态) terminated

系统内核的加载

计算机上电后第一个执行的程序是BIOS,BIOS存放在ROM中 (现在一般放在flash中),BIOS将磁盘前512字节的MBR (主引导记录,

21 Merge Two Sorted Lists

LeetCode 21:Merge Two Sorted Lists C++ ListNode *mergeTwoLists(ListNode *l1, ListNode *l2) { if(NULL == l1) return l2; if(NULL == l2) return l1; ListNode* head=NULL; // head of the list to return // find first element (can use dummy node to put this part inside of the loop) if(l1->val < l2->val) { head = l1; l1 = l1->next; } else { head = l2;