码迷,mamicode.com
首页 >  
搜索关键字:__exit__    ( 5821个结果
golang coroutine 的等待与死锁
直接上代码: 1. 第一种情况, 如果没有select{}, main 主线程不会等待coroutine运行,导致coroutine得不到机会运行。 You are requesting eventual scheduling (using the two go statements)  of two goroutines and then you exit main without g...
分类:其他好文   时间:2014-06-22 19:56:27    阅读次数:261
思科2960trunk vlan配置
en conf t vlan id end conf t inter rang gi 0/0/1-x switchport access vlan id no shutdown exit (config)#interface range gigabitEthernet 1/0/23-24 (config-if-range)#switchport mode trunk (con...
分类:其他好文   时间:2014-06-22 14:12:59    阅读次数:421
CCNA 6.6
sh run (show running-config)enable disable login logout exit endenable passwordprivilege level(global)privilege level(line)show interface serial 1/1di...
分类:其他好文   时间:2014-06-20 23:51:05    阅读次数:437
Linux与Windows API对比
对象操作Linux APIWindows API线程创建pthread_create()CreateThread()退出pthread_exit()ThreadExit()等待pthread_join()WaitForSingleObject()互斥锁创建pthread_mutex_init()Cr...
分类:Windows程序   时间:2014-06-20 17:23:05    阅读次数:1095
WPF的退出
很多时候,会自己写退出程序的代码。比如,先显示登录框(LogIn),成功后隐藏它,并显示一个主窗体(MainWin),或者外部还调用了其他App,当你关闭MainWin不一定会直接退出整个程序的。我们可以直接终止相关进程: System.Environment.Exit(0);当然,你可能还想在退....
分类:其他好文   时间:2014-06-18 10:39:10    阅读次数:213
在VC下如何使用头文件unistd.h
头文件unistd.h是Linux/Unix的系统调用,包含了许多UNIX系统服务函数原型,如open、read、write、_exit、getpid等函数。在linux下能够编译通过的包含此头文件的程序,在VC下编译时出现了如下问题 fatal error C1083: Cannot open i...
分类:其他好文   时间:2014-06-18 10:31:54    阅读次数:244
php上传文件
上传文件表单上载文件表单请选择文件: $file_size_max) {echo "对不起,你的文件容量大于规定";exit;}// 检查读写文件if (file_exists($store_dir . $upload_file_name) && !$accept_overwrite) {Echo ...
分类:Web程序   时间:2014-06-17 15:42:15    阅读次数:216
shell学习总结之自定义函数
shell学习总结之自定义函数Myfun (){ echo patams1 is $1 echo -n "now i is $i " ! [ "$i" ] && exit ; echo jj return '1'}myf=$(Myfun);echo myf Myfun 12unset Myfu...
分类:其他好文   时间:2014-06-17 14:14:48    阅读次数:270
NYOJ 483 Nightmare 【广搜】+【无标记】
Nightmare 时间限制:1000 ms  |  内存限制:65535 KB 难度:4 描述 Ignatius had a nightmare last night. He found himself in a labyrinth with a time bomb on him. The labyrinth has an exit, Ignatius should ...
分类:Web程序   时间:2014-06-16 18:57:52    阅读次数:268
Linux Apache error 日志 提示[warn] child process 7751 still did not exit, sending a SIGTERM
Apache吃空内存,频繁宕机在部署一套内网测试环境时,频繁宕机,开机后不断的吃内存,重启apache之后内存占用会不停的上涨,直到swap用完,直到死机,由于是内网环境,服务器并发和压力都很校查看apache错误日志,报大量类似错误:[TueFeb1414:49:282012][warn]childprocess775..
分类:系统相关   时间:2014-06-16 16:54:32    阅读次数:226
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!