上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页
摘要: 1、概念 进程是资源管理的最小单位; 线程是程序执行的最小单位。 OS设计上,从进程演化出线程,最主要的目的就是减小多进程上下文切换开销。 即就是我们常说的:进程作为系统资源分配的基本单位,线程作为任务调度和执行的基本单位。 从四个方面简单说明一下进程与线程的区别: (1)在开销方面:每个进程都有独 阅读全文
posted @ 2021-02-16 21:53 额是无名小卒儿 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 1. 题目描述 You are given an array of k linked-lists lists, each linked-list is sorted in ascending order.Merge all the linked-lists into one sorted linke 阅读全文
posted @ 2021-02-16 19:56 额是无名小卒儿 阅读(433) 评论(0) 推荐(0) 编辑
摘要: 组合求和( Combination Sum) 1. 题目描述 Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of 阅读全文
posted @ 2021-02-16 19:42 额是无名小卒儿 阅读(1383) 评论(0) 推荐(0) 编辑
摘要: 为什么要使用make 先来想像一个案例,假设我的可执行文件里面包含了四个源代码文件,分别是 main.c haha.c sin_value.c cos_value.c 这四个文件,这四个文件的目的是: main.c :主要的目的是让使用者输入角度数据与调用其他三支副程序; haha.c :输出一堆有 阅读全文
posted @ 2021-02-16 19:37 额是无名小卒儿 阅读(1460) 评论(0) 推荐(0) 编辑
摘要: CountDownLatch的作用类似于Thread.join()方法,但比join()更加灵活。 它可以等待多个线程(取决于实例化时声明的数量)都达到预期状态或者完成工作以后,通知其他正在等待的线程继续执行。 简单的说,Thread.join()是等待具体的一个线程执行完毕,CountDownLa 阅读全文
posted @ 2021-02-16 19:35 额是无名小卒儿 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 之前做项目用到过ThreadLocal,但是没有看源码层面的具体实现,今天特来补一补课。 ThreadLocal,即线程局部变量,用来为每一个使用它的线程维护一个独立的变量副本。 这种变量只在线程的生命周期内有效。并且与锁机制那种以时间换取空间的做法不同,ThreadLocal没有任何锁机制,它以空 阅读全文
posted @ 2021-02-16 17:57 额是无名小卒儿 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 1. 题目描述 Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining 阅读全文
posted @ 2021-02-16 17:17 额是无名小卒儿 阅读(414) 评论(0) 推荐(0) 编辑
摘要: 1. 题目描述 Given an array nums of distinct integers, return all the possible permutations. You can return the answer in any order. 2. Examples 示例1: Input 阅读全文
posted @ 2021-02-15 23:09 额是无名小卒儿 阅读(429) 评论(0) 推荐(0) 编辑
摘要: 1. 题目描述 You are given an n x n 2D matrix representing an image, rotate the image by 90 degrees (clockwise). You have to rotate the image in-place, whi 阅读全文
posted @ 2021-02-15 23:07 额是无名小卒儿 阅读(691) 评论(0) 推荐(0) 编辑
摘要: 第十九章学习(Linux的开机流程分析) 1.1)、开机流程 简单来说,系统开机的经过可以汇整成下面的流程的: 1. 载入 BIOS 的硬件信息与进行自我测试,并依据设置取得第一个可开机的设备; 2. 读取并执行第一个开机设备内 MBR 的 boot Loader (亦即是 grub2, spfdi 阅读全文
posted @ 2021-02-15 22:54 额是无名小卒儿 阅读(181) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页