![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
操作系统
cainiao_23333
这个作者很懒,什么都没留下…
展开
-
146. LRU Cache
https://leetcode.com/problems/lru-cache/ Design and implement a data structure forLeast Recently Used (LRU) cache. It should support the following operations:getandput. get(key)- Get the value ...原创 2019-10-04 23:22:35 · 79 阅读 · 0 评论 -
进程和线程的区别
回答一:https://blog.csdn.net/wsq119/article/details/82154305 进程是资源分配最小单位,线程是程序执行的最小单位; 进程有自己独立的地址空间,每启动一个进程,系统都会为其分配地址空间,建立数据表来维护代码段、堆栈段和数据段,线程没有独立的地址空间,它使用相同的地址空间共享数据; CPU切换一个线程比切换进程花费小; 创建一个线程比进程开销...转载 2019-10-06 22:07:47 · 72 阅读 · 0 评论