多线程

专注于多线程的开发与研究

导航

2012年5月26日

摘要: 一直以来我一直都想让自己有提高的空间。虽然进步不大,不过我觉得在周围的人身上学到了不少东西,在下面这里我把人名列下来,永远记住。蔡*:人际关系。陈*:境界。刘**:专业会因努力而改变现实。申*:项目经理。赵**:架构及OOD。黄**:多线程设计及开发。马*:流程图的制作。当然还有很多,想起来了再继续加。 阅读全文

posted @ 2012-05-26 18:09 threads 阅读(157) 评论(0) 推荐(0)

摘要: QQ消息包格式: * ******** 普通消息,消息类型为0x0009或者0x000A ********* * 头部 * --------- 加密开始(会话密钥)---------- * 发送者QQ号,4字节 * 接收者QQ号,4字节 * 包序号(并非我们发送时候的序号,因为这个是4字节,可能是服务器端得总序号) * 发送者IP,如果是服务器转发的,那么ip就是服务器ip, 4字节 * 发送者端口,如果是服务器转发的,那么就是服务器的端口,2字节 * 消息类型,2字节,0x0009或者0x000A * 发送者QQ版本,2字节 * 发送者的QQ号,4字节 * 接受者的QQ号,4字节 * md5 阅读全文

posted @ 2012-05-26 08:32 threads 阅读(504) 评论(0) 推荐(0)

2012年5月25日

摘要: 一直一来都在使用淘宝的消息推送业务,感觉很好用,前一段时间QQ2012也实现了消息推送的业务,另外一些安卓软件也实现了消息推送,我感觉消息推送这种技术或架构以后会在很长时间内流行。引用淘宝开放平台对于消息推送的解释:主动通知(Stream api)是数据推送api,即数据主动推送服务,把淘宝产生的数据实时的推送给外部,app通过订阅可接受这些实时消息。消息推送业务说的简单点:服务端-----》》》启动。客户端-----》》》启动。客户端-----》》》连接服务端,并建立TCP长连接。服务端-----》》》得到信息源(来源可能是别的系统的消息通知或自己在循环扫描)。服务端-----》》》把这条信 阅读全文

posted @ 2012-05-25 20:59 threads 阅读(3695) 评论(0) 推荐(0)

2012年5月18日

摘要: 代码:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Data.SqlClient;using System.Threading;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { long count = 0; while (... 阅读全文

posted @ 2012-05-18 07:41 threads 阅读(217) 评论(0) 推荐(0)

2012年5月17日

摘要: 代码:import java.text.SimpleDateFormat;import java.util.Date;import java.util.concurrent.Executors;import java.util.concurrent.ExecutorService;import java.sql.*;public class thdd { public static void main(String[] args) throws InterruptedException { ExecutorService pool = Executors.newSingle... 阅读全文

posted @ 2012-05-17 22:44 threads 阅读(5235) 评论(0) 推荐(0)

2012年5月16日

摘要: 代码:import java.text.SimpleDateFormat;import java.util.Date;import java.util.concurrent.Executors;import java.util.concurrent.ExecutorService;import java.sql.*;public class thdd { public static void main(String[] args) throws InterruptedException { ExecutorService pool = Executors.newSingle... 阅读全文

posted @ 2012-05-16 07:57 threads 阅读(279) 评论(0) 推荐(0)

2012年5月13日

摘要: 代码:import java.text.SimpleDateFormat;import java.util.*;import java.util.concurrent.Executors;import java.util.concurrent.ScheduledExecutorService;import java.util.concurrent.TimeUnit;public class thdd { public static void main(String[] args) { ScheduledExecutorService pool = Executors.new... 阅读全文

posted @ 2012-05-13 20:02 threads 阅读(363) 评论(0) 推荐(0)

摘要: 代码:import java.text.SimpleDateFormat;import java.util.*;import java.util.concurrent.Executors;import java.util.concurrent.ScheduledExecutorService;import java.util.concurrent.TimeUnit;public class thdd { public static void main(String[] args) { ScheduledExecutorService pool = Executors.new... 阅读全文

posted @ 2012-05-13 19:59 threads 阅读(474) 评论(0) 推荐(0)

摘要: 代码:import java.util.concurrent.ExecutorService;import java.util.concurrent.Executors;public class thdd { public static void main(String[] args) { ExecutorService pool = Executors.newCachedThreadPool(); // 创建实现了Runnable接口对象,Thread对象当然也实现了Runnable接口 for (int i = 0; i < 100; i++... 阅读全文

posted @ 2012-05-13 19:57 threads 阅读(342) 评论(0) 推荐(0)

摘要: 代码:import java.util.concurrent.ExecutorService;import java.util.concurrent.Executors;public class thdd { public static void main(String[] args) { ExecutorService pool = Executors.newSingleThreadExecutor(); // 创建实现了Runnable接口对象,Thread对象当然也实现了Runnable接口 for (int i = 0; i < 100;... 阅读全文

posted @ 2012-05-13 19:52 threads 阅读(231) 评论(0) 推荐(0)

联系Email:ha666@ha666.com