摘要:
进程的概念 在多道程序环境下,允许多个程序并发执行,此时它们将失去封闭性,并具有间断性及不可再现性的特征。为此引入了进程(Process)的概念,以便更好地描述和控制程序的并发执行,实现操作系统的并发性和共享性。 为了使参与并发执行的程序(含数据)能独立地运行,必须为之配置一个专门的数据结构,称为进 阅读全文
摘要:
1.操作系统的概念 计算机系统自下而上可粗分为四个部分:硬件、操作系统、应用程序和用户(这里的划分与计算机组成原理的分层不同)。操作系统管理各种计算机硬件,为应用程序提供基础,并充当计算机硬件与用户之间的中介。 操作系统(Operating System, OS)是指控制和管理整个计算机系统的硬件和 阅读全文
摘要:
Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical.) Yo 阅读全文
摘要:
源和目的端口号:与IP头部中源和目的IP地址一起,唯一的表示了每个连接。序列号:标识了TCP发送端到TCP接收端的数据流的一个字节,该字节代表着包含该序列号的报文段的数据中的第一个字节。32位无符号0~(2^32 - 1)循环。确认号:该确认号的发送方期待接受的下一个序列号。只有在ACK位字段启用下 阅读全文
摘要:
Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacen 阅读全文
摘要:
Given a positive integer, check whether it has alternating bits: namely, if two adjacent bits will always have different values. Example 1: Example 2: 阅读全文
摘要:
IP是TCP/IP协议族中的核心协议。 IP提供一种尽力而为、无连接的数据报交付服务。 “尽力而为”的含义是不保证IP数据报能成功到达目的地。虽然IP不是简单丢弃所有不必要流量,但它也不对自己尝试交付的数据报提供保障。当某些错误发生时,IP提供一个简单的错误处理方法:丢弃一些数据(通常是最后达到的数 阅读全文
摘要:
Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrenc 阅读全文
摘要:
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. F 阅读全文
摘要:
The count-and-say sequence is the sequence of integers with the first five terms as following: 1 is read off as "one 1" or 11.11 is read off as "two 1 阅读全文