一个c实现的线程池threadpool-0.1,有测试代码 This is an implementation for the following requirements: http://paul.rutgers.edu/~csgates/CS416/proj2/index.html Reports of successful use are appreciated. Enjoy! -- stephen liu
发现csdn上的连接池都是配设xml的,就手写了一份数据库连接池(java),连接sqlserver,里面一共两个java代码,Conn类包含了Connection和标志位,myconnection包含了数据库连接池的使用:获取连接,增加连接,释放连接,连接超时收回,释放空闲连接等: 获取连接: int i = myconnection.getConnectionID(); Connection test = myconnection.getConnection(i); 这样就获取了连接,默认