上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 73 下一页
摘要: 出现异常”The last packet sent successfully to the server was 0 milliseconds ago.“的大部分原因是由于数据库回收了连接,而系统的缓冲池不知道,继续使用被回收的连接所致的。 以mysql为例: 第一种解决办法,就是将mysql回收... 阅读全文
posted @ 2013-12-19 09:24 小尼人00 阅读(1336) 评论(0) 推荐(0)
摘要: #include #include #include #include #include #include using std::cin;using std::cout;using std::endl;using std::string;typedef string String;const int... 阅读全文
posted @ 2013-12-17 17:38 小尼人00 阅读(483) 评论(0) 推荐(0)
摘要: 函数 pipe我们用中文叫做管道。 以下讲解均是基于Linux为环境:简介 所需头文件 #include 函数原型 int pipe(int fd[2]) 函数传入值 fd[2]:管道的两个文件描述符,之后就是可以直接操作这两个文件描述符 返回值 成功 0 失败 -1什么是管道 管道... 阅读全文
posted @ 2013-12-17 17:36 小尼人00 阅读(678) 评论(0) 推荐(0)
摘要: 这些日子我一直在写一个实时操作系统内核,已有小成了,等写完我会全部公开,希望能够为国内IT的发展尽自己一份微薄的力量。最近看到很多学生朋友和我当年一样没有方向,所以把我的经历写出来与大家共勉,希望能给刚如行的朋友们一点点帮助。一转眼我在IT行业学习工作已经七年多了,这期间我做过网页,写过MIS、数据... 阅读全文
posted @ 2013-12-09 22:01 小尼人00 阅读(175) 评论(0) 推荐(0)
摘要: import java.net.*;import java.io.*;public class TestUDPClient { public static void main(String args[]) throws Exception { long n = 10000L; ... 阅读全文
posted @ 2013-12-09 18:43 小尼人00 阅读(216) 评论(0) 推荐(0)
摘要: /* 范例名称:简单的client/server程序 * 源文件名称:TestClient.java/TestServer.java * 要 点: * 1. Java Socket编程步骤 * 2. Socket/ServerSocket类用法 * 3. 通过S... 阅读全文
posted @ 2013-12-09 16:18 小尼人00 阅读(182) 评论(0) 推荐(0)
摘要: import java.net.*;import java.io.*;public class TCPServer { public static void main(String[] args) throws Exception { ServerSocket ss = new ... 阅读全文
posted @ 2013-12-09 14:42 小尼人00 阅读(906) 评论(0) 推荐(0)
摘要: package com.bjsxt.chap9Thread;public class ProducerConsumer { public static void main(String[] args) { SyncStack ss = new SyncStack(); ... 阅读全文
posted @ 2013-12-09 10:41 小尼人00 阅读(177) 评论(0) 推荐(0)
摘要: public class TestSync implements Runnable { Timer timer = new Timer(); public static void main(String[] args) { TestSync test = new TestS... 阅读全文
posted @ 2013-12-08 16:42 小尼人00 阅读(188) 评论(0) 推荐(0)
摘要: public class TestPriority { public static void main(String[] args) { Thread t1 = new Thread(new T1()); Thread t2 = new Thread(new T2(... 阅读全文
posted @ 2013-12-08 15:08 小尼人00 阅读(113) 评论(0) 推荐(0)
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 73 下一页