上一页 1 ··· 373 374 375 376 377 378 379 380 381 ··· 785 下一页
摘要: 一、发布和订阅机制 当一个客户端通过 PUBLISH 命令向订阅者发送信息的时候,我们称这个客户端为发布者(publisher)。 而当一个客户端使用 SUBSCRIBE 或者 PSUBSCRIBE 命令接收信息的时候,我们称这个客户端为订阅者(subscriber)。 为了解耦发布者(publis 阅读全文
posted @ 2016-04-06 00:23 沧海一滴 阅读(513) 评论(0) 推荐(0)
摘要: Welcome What users say: “Cheers for a great tool that actually makes programmers want to write documentation!” What users say: “Cheers for a great too 阅读全文
posted @ 2016-04-05 23:32 沧海一滴 阅读(471) 评论(0) 推荐(0)
摘要: brew install redisOnce you unpack Redis, you can launch it with its default settings by running the following command: redis-server https://spring.io/ 阅读全文
posted @ 2016-04-05 23:13 沧海一滴 阅读(255) 评论(0) 推荐(0)
摘要: 在我们开始谈线程之前,不得不提下进程。无论进程还是线程都是很抽象的概念,有一个关于进程和线程很形象的比喻能帮我们更好的理解。 进程就像个房子,房子是一个包含了特定属性的容器,例如空间大小、卧室数量等。 如果你也这样看的话,那么房子自己不会主动做任何事情,它是被动的对象。 而线程则像是房中的居住者,它 阅读全文
posted @ 2016-04-05 17:22 沧海一滴 阅读(281) 评论(0) 推荐(0)
摘要: 前面一篇文章从Executors中的工厂方法入手,已经对ThreadPoolExecutor的构造和使用做了一些整理。而这篇文章,我们将接着前面的介绍,从源码实现上对ThreadPoolExecutor在任务的提交、执行,线程重用和线程数维护等方面做下分析。 0. ThreadPoolExecuto 阅读全文
posted @ 2016-04-05 16:59 沧海一滴 阅读(274) 评论(0) 推荐(0)
上一页 1 ··· 373 374 375 376 377 378 379 380 381 ··· 785 下一页