原作者:chexlong原文地址:http://blog.csdn.net/chexlong/article/details/7060425在Win32平台上进行多线程编程,常会用到锁。下边用C++实现了互斥对象(Mutex)锁和临界区(CRITICAL_SECTION)锁,以加深理解和今后方便使用...
分类:
其他好文 时间:
2015-05-06 20:59:03
阅读次数:
154
Represent nil with NSNullIt’s not possible to add nil to the collection classes described in this section because nil in Objective-C means “no object....
分类:
其他好文 时间:
2015-05-06 14:46:39
阅读次数:
111
没有系统学过数学优化,但是机器学习中又常用到这些工具和技巧,机器学习中最常见的优化当属凸优化了,这些可以参考Ng的教学资料:http://cs229.stanford.edu/section/cs229-cvxopt.pdf,从中我们可以大致了解到一些凸优化的概念,比如凸集,凸函数,凸优化问题,.....
分类:
其他好文 时间:
2015-05-06 12:56:19
阅读次数:
736
1 @{ 2 ViewBag.Title = "Index"; 3 Layout = "~/Views/Shared/_LayoutPage.cshtml"; 4 } 5 6 @section head{ 7 8 9 10 11 12 124 }125...
分类:
Web程序 时间:
2015-05-05 08:47:51
阅读次数:
395
section一块 article一篇==section:group, chapter, 划分派系 等级不同的大块article: 一段内容 一篇文章 可以用于syndicate / rss两者的区别还是很大的。
分类:
Web程序 时间:
2015-05-04 19:48:30
阅读次数:
143
接上一篇11、section,sectionelse section是一种循环结构语句,主要用于遍历数组语法:{section name=名称 loop=循环数组(次数) start=开始(0) step=步阶(1) max=最大循环次数} {sectionelse}{/section}Name:为...
分类:
Web程序 时间:
2015-05-04 09:52:25
阅读次数:
160
我们使用的平台是Linux系统,具体为CentOS-64位版。下面是第一个汇编程序的源码:
# 目的:退出Linux内核并返回一个简单的状态码
#
# 输入:无
#
# 输出:控制台上没有输出,可以用echo $?来查看状态码
#
# 变量:
# %eax 保存系统调用号
# %ebx 保存返回状态
#
.section .data
.section .text
.gl...
分类:
系统相关 时间:
2015-05-01 09:24:55
阅读次数:
206
方式一:配置文件(ConfigParser模块)方式二:解析参数(argparse模块)1.配置文件(ConfigParser模块)1.1 ConfigParser简介ConfigParser 是用来读取配置文件的包。配置文件的格式如下:中括号“[ ]”内包含的为section。section 下面...
分类:
编程语言 时间:
2015-05-01 00:27:31
阅读次数:
268
critical-section problema solution to critical-setion problem should satisfy 3 requiremnets:1.Mutual exclusion2.Progress3.Bounded waiting2 & 3的区别?有什么场...
分类:
系统相关 时间:
2015-04-30 15:41:46
阅读次数:
189
Linux内核中的Cache段原文地址:http://blogold.chinaunix.net/u2/85263/showart_1743693.html 最近移植LEON3的内核时,了解了一些简单知识,特提出来供大家分享. 我们知道Linux 内核包含很多Section段,例如主要的.text段...
分类:
系统相关 时间:
2015-04-30 12:31:51
阅读次数:
181