摘要: 计算机系统的抽象基础---进程、虚存和文件。进程抽象:操作系统内核的主要任务之一就是讲处理器“虚拟化”,制造每一个运行进程都独自拥有一个处理器的假象。虚存抽象:进程拥有一个硕大的联系地址空间。而且进程的虚拟主存空间彼此隔离,具有很好的安全性。文件抽象:除处理器和主存职位,将磁盘和其他外部设备资源都抽... 阅读全文
posted @ 2015-06-23 21:55 穆穆兔兔 阅读(1197) 评论(0) 推荐(0)
摘要: Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra space?Hid... 阅读全文
posted @ 2015-06-23 16:38 穆穆兔兔 阅读(189) 评论(0) 推荐(0)
摘要: Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?Hide TagsLinked ListTwo Pointers分析:经典的快慢指针... 阅读全文
posted @ 2015-06-23 16:13 穆穆兔兔 阅读(201) 评论(0) 推荐(0)
摘要: memmove和memcpy1.memmove函数原型:void *memmove(void *dest, const void *source, size_t count)返回值说明:返回指向dest的void *指针参数说明:dest,source分别为目标串和源串的首地址。count为要移动的... 阅读全文
posted @ 2015-06-23 15:12 穆穆兔兔 阅读(296) 评论(0) 推荐(0)