上一页 1 2 3 4 5 6 7 8 ··· 15 下一页
摘要: Connections and Translators NAT TCP Options Every option begins with a 1-byte kind that specifies the type of option. Options that are not understood 阅读全文
posted @ 2018-10-01 16:31 geeklove 阅读(256) 评论(0) 推荐(0) 编辑
摘要: Introduction Recall that TCP’s service model is a byte stream. TCP detects and repairs essentially all the data transfer problems that may be introduc 阅读全文
posted @ 2018-10-01 12:07 geeklove 阅读(514) 评论(0) 推荐(0) 编辑
摘要: def solve(num_str): MAX, MIN = 65535, -65536 num_str_len = len(num_str) i = 0 while num_str[i] == ' ': i += 1 if i == num_str_len: return 0 is_neg = True if n... 阅读全文
posted @ 2018-08-18 11:17 geeklove 阅读(109) 评论(0) 推荐(0) 编辑
摘要: O(n^2) solution 2: maintain a window: 阅读全文
posted @ 2018-08-15 19:59 geeklove 阅读(93) 评论(0) 推荐(0) 编辑
摘要: You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contai 阅读全文
posted @ 2018-08-04 19:58 geeklove 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1 a thread-unsafe code version: 1.1 correct version 1: 1.2 correct version 2 and its pros and cons: Another approach is to pass the integer i directly 阅读全文
posted @ 2018-08-04 13:30 geeklove 阅读(501) 评论(0) 推荐(0) 编辑
摘要: Using Threads for Parallelism Figure 12.30 shows the set relationships between sequential, concurrent, and parallel programs. A parallel program is a 阅读全文
posted @ 2018-08-03 17:00 geeklove 阅读(277) 评论(0) 推荐(0) 编辑
摘要: Using Semaphores to Schedule Shared Resources In this scenario, a thread uses a semaphore operation to notify another thread that some condition in th 阅读全文
posted @ 2018-07-29 19:07 geeklove 阅读(229) 评论(0) 推荐(0) 编辑
摘要: Shared Variables in Threaded Programs Threads Memory Model Thus, registers are never shared, whereas virtual memory is always shared. The memory model 阅读全文
posted @ 2018-07-27 12:13 geeklove 阅读(316) 评论(0) 推荐(0) 编辑
摘要: Modern operating systems provide three basic approaches for building concurrent programs: Processes. With this approach, each logical control flow is 阅读全文
posted @ 2018-07-25 17:15 geeklove 阅读(243) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 15 下一页