void clean ( void * p ) { printf ( "clean()\n" ); } void * thread ( void * p ) { pthread_cleanup_push( clean, NULL); printf ( "thread sleep\n" ); sleep (10); pthread_cleanup_pop(0); } int main () { pthread_t id; pthread_mutexattr_t attr; pthread_create ( &id, NULL, thread, NULL ); printf ( "main sleep\n"); s...
by 星之孩子 - Linux论坛 - 2004-11-30 12:00:15 阅读(1640) 回复(0)
我学习写了一段线程程序:
+1 /* testpthread.c */
+2 #include
#include
1.shutdown the SF6800 steps 1)telnet the OS hosts (domain a),execute: #init 5 2)connect the serial console witch SC0 3)Type 1 into the domain System Controller 'USF6800': Type 0 for Platform Shell Type 1 for domain A console Type 2 for domain B console Type 3 for domain C console Type 4 for domain D console Input: 1 -- Type 1 for domain A console ...
C++ introduced the concept of a constructor, a special method automatically called when an objects is created. Java also adopted the constructor, an in additon has a garbage collector that automatically releases memory resources when they're no longer being used. Guaranteed initialization with the constructor In Java, the class designer can guarantee initialization of ...
服务端报错: opevz openvpn 服务器,客户端连上后,不能上网,不走服务端,该如何设置 ? nat 路由策略 ? [ 本帖最后由 liang3391 于 2009-4-11 13:41 编辑 ]
[color="#800080"]sms push格式 [color="#000000"]sms push格式 00 ’SMSC Len。用手机上设置短信中心号码 51 ’submit type 00 ’SMS_TP_Message_Reference type 0B ’对方电话的长度 A1 ’Number type 13166416588F8 ’电话号码:13661456888 00 ’SMS_TP_PID F5 ’SMS DCS A744 ’SMS available date 0B05040B8423F00003030101 ’Wap push Header 1 [color="#ff0000"]2906...