`
lqy1987lqy
  • 浏览: 10924 次
  • 性别: Icon_minigender_1
  • 来自: 长沙
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
* How to use epoll? A complete example in C 译文 通常的网络服务器实现, 是对每一个连接使用一个单独的线程或进程。对高性能应用而言,由于需要同时处理非常多的客户请求, 所以这种方式并不能工作得很好,因为诸如资源使用和上 ...
在多线程或多进程间共享数据时,为了保证共享数据的正确性,同步是必不可少的。其中,互斥锁与条件变量是同步的重要组成部分, 互斥锁用来上锁, 条件变量用来等待。 1.1 互斥锁 互斥是指相互排斥(mutual exclusion)。互斥锁用于保护临界区(critical region), 以保证任何时刻只有一个线程(进程)在执行其中的代码,假设互斥锁由多个线程(进程),保护一个临界区的代码通常如下: lock_the_mutex(...); /* critical region */ unlock_the_mutex(...);
We know that information transmission means through the Ethernet consist of unicasting, multicasting, anycasting and broadcasting. The following table show differen forms of addressing. Type      IPv4 IPv6 TCP     UDP #IP interfaces identified #IP interfaces delivered to Unicast   .    .    ...
I decide to do the exercises of the book of SICP, and put them on javaeye. Before this decision, I saw a person who had spent one whole year on reading the SICP, and publised his thinkings and solutions of the exercises on his blog. It's him who inspired me to make this program. During the passed m ...
Exercise 1.1 This exercise is very easy, just evaluate some expressions. 1 ]=> 10 ;Value: 10 1 ]=> (+ 5 3 4) ;Value: 12 1 ]=> (- 9 1) ;Value: 8 1 ]=> (/ 6 2) ;Value: 3 1 ]=> (+ (* 2 4) (- 4 6)) ;Value: 6 1 ]=> (define a 3) ;Value: a 1 ]=> (d ...
Global site tag (gtag.js) - Google Analytics