上一页 1 ··· 52 53 54 55 56 57 58 59 60 ··· 107 下一页

2008年8月17日

Once a detached thread has terminated, its resources, including the thread ID, may be reused

摘要: pthread_detach() — mark a thread as detached to reclaim its resources when it terminates SYNOPSIS #include int pthread_detach( pthread_t thread ); PARAMETERS thread Thread whose resourc... 阅读全文

posted @ 2008-08-17 21:36 cy163 阅读(343) 评论(0) 推荐(0) 编辑

给线程变量pthread_t *thread动态分配空间

摘要: 线程的创建和使用 线程的创建是用下面的几个函数来实现的. #include int pthread_create(pthread_t *thread,pthread_attr_t *attr, void *(*start_routine)(void *),void *arg)... 阅读全文

posted @ 2008-08-17 21:35 cy163 阅读(4519) 评论(0) 推荐(0) 编辑

同一线程多次创建 的 线程资源释放问题在每个线程的一开始,用pthred_detach(pthread_self())来使自己detach掉

摘要: fxhnkf 关于线程创建个数的问题 我的程序里调用pthread_create创建一个线程,此线程执行完一定任务后由pthread_exit(NULL);退出 主程序不断的创建此thread 发现到了第500多次创建时,pthread_create返回11,我查了一下errno.h,11是"No more processes" 这是为什么呢???? fxhnkf 关于线程创建个数的问题 ... 阅读全文

posted @ 2008-08-17 21:33 cy163 阅读(4302) 评论(0) 推荐(0) 编辑

2008年8月16日

linux多线程的总结(pthread用法)

摘要: #include int pthread_create(pthread_t *restrict tidp,const pthread_attr_t *restrict attr, void *(*start_rtn)(void),void *restrict arg); Returns: 0 if OK, error number on failure 第一个参数为指向线程标识符的指针。 第... 阅读全文

posted @ 2008-08-16 19:38 cy163 阅读(41828) 评论(1) 推荐(1) 编辑

STL container

摘要: Disclaimer I started looking at STL in 1995; for a long time I could compile only minimal subsets of the HP version of the library. More recently, the compilers used by the students I teach have been... 阅读全文

posted @ 2008-08-16 18:38 cy163 阅读(871) 评论(0) 推荐(0) 编辑

2008年8月14日

MySQL alter 语句用法

摘要: //主键 alter table tabelname add new_field_id int(5) unsigned default 0 not null auto_increment ,add primary key (new_field_id); //增加一个新列 alter table t2 add d timestamp; alter table infos add ex t... 阅读全文

posted @ 2008-08-14 00:09 cy163 阅读(529) 评论(0) 推荐(0) 编辑

2008年8月13日

Java 中文乱码问题

摘要: 一、中文问题的来源 计算机最初的操作系统支持的编码是单字节的字符编码,于是,在计算机中一切处理程序最初都是以单字节编码的英文为准进行处理。随着计算机的发展,为了适应世界其它民族的语言(当然包括我们的汉字),人们提出了UNICODE编码,它采用双字节编码,兼容英文字符和其它民族的双字节字符编码,所以,目前,大多数国际性的软件内部均采用UNICODE编码,在软件运行时,它获得本地支持系统(... 阅读全文

posted @ 2008-08-13 23:23 cy163 阅读(10304) 评论(0) 推荐(0) 编辑

2008年8月7日

mysql-client-5.0.26-14 RPM for ppc

摘要: mysql-client-5.0.26-14 RPM for ppc From SuSE Linux 10.2 updates for i386 / rpm / ppc Name: mysql-client Distribution: openSUSE 10.2 (PPC) V... 阅读全文

posted @ 2008-08-07 17:27 cy163 阅读(2055) 评论(0) 推荐(0) 编辑

2008年8月6日

当SQL数据库日志文件已满,或者日志很大,怎么办

摘要: 当SQL数据库日志文件已满,或者日志很大,就需要压缩日志及数据库文件: 1.清空日志 DUMP TRANSACTION 库名 WITH NO_LOG 2.截断事务日志: BACKUP LOG 数据库名 WITH NO_LOG 3.收缩数据库文件(如果不压缩,数据库的文件不会减小 企业管理器--右键你要压缩的数据库--所有任务--收缩数据库--收缩文件 -... 阅读全文

posted @ 2008-08-06 14:19 cy163 阅读(2931) 评论(0) 推荐(0) 编辑

SQL日志文件过大问题的解决方法

摘要: 前几天也碰到日志文件过大的问题,数据库实际大小为600M, 日志文件实际大小为33M, 但日志文件占用空间为2.8G!!! 试了多种方式,SHIRNK DATABASE, TRUNCATE LOG FILE, 都没办法将文件缩小。无论如何,这应该算SQL SERVER的一个BUG吧。 后来找到下面的代码,就可以将日志文件缩小到自己想要的大小了。把代码COPY到查询分析器里,,然后修改其中的3个参数... 阅读全文

posted @ 2008-08-06 14:16 cy163 阅读(395) 评论(0) 推荐(0) 编辑

上一页 1 ··· 52 53 54 55 56 57 58 59 60 ··· 107 下一页

导航