码迷,mamicode.com
首页 >  
搜索关键字:read    ( 19693个结果
Java for LeetCode 038 Count and Say
The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1 is read off as "one 1" or 11.11 is read off ...
分类:编程语言   时间:2015-05-09 17:25:14    阅读次数:161
读写锁(read-write lock)机制-----多线程同步问题的解决
读写锁(read-write lock)一 综述 在一些程序中存在读者写者问题,也就是说,对某些资源的访问会 存在两种可能的情况,一种是访问必须是排它行的,就是独占的意思,这称作写操作;另一种情况就是访问方式可以是共享的,就是说可以有多个线程同时去访问某个资源,这种就称作读操作。这个问题模型是从对文...
分类:编程语言   时间:2015-05-09 17:16:24    阅读次数:145
Windows Serial Port Programming in C.
Similar with the linux version , this article would demonstrate how to write a simple windows .     I divide the 2 operations : write and read into 2 threads. Of course, one could call ReadFile a...
分类:Windows程序   时间:2015-05-09 15:02:11    阅读次数:199
mysql json调用信息重复
$list = $Data->join('w_read ON w_article.id = w_read.aid')->where($where)->order($order)->limit($Page->firstRow.','.$Page->listRows)->select();调用由于w_r...
分类:数据库   时间:2015-05-09 11:40:13    阅读次数:147
python read 二进制文件
具体要参考struct的包的书名书#encoding:gbk import struct import binasciivalues=(65533,'sh',75533,99985544)#要二进制的数据 s=struct.Struct('I 2s I I') #格式化 packed_data=s.pack(*values)#转为二进制print "original values:", values...
分类:编程语言   时间:2015-05-09 08:52:22    阅读次数:119
StringBuffer(常见功能 添加)
/*StringBuffer 是字符串缓冲区,是一个容器,而且长度是可变化的C create U update R read D delete1、存储: StringBuffer append():将指定数据作为参数添加到已有数据结尾处 StringBuffer insert(index,数据):可...
分类:其他好文   时间:2015-05-09 06:31:42    阅读次数:107
C# 通过SerialPort简单调用串口
串口SerialPort类使用Write之后进行Read之后可能存在数据延后发送或者数据合并发送,笔者使用线程等待锁定串口的工作状态的形式进行获取准确的数据。这样能够一定的解决数据失真的情况,但是高密集的命令下可能产生数据命令的丢失。
分类:Windows程序   时间:2015-05-08 21:50:46    阅读次数:182
在Excel中实现查询功能
$sn = Read-Host -Prompt "请输入员工号|序列号|资产号"$xl = New-Object -ComObject "Excel.Application"$cmdbwb = $xl.Workbooks.Open("F:\Ivan\HZCMDB.xlsx")$cmdbwss = "...
分类:其他好文   时间:2015-05-08 20:07:15    阅读次数:118
PowerShell - Read an Excel file using COM Interface
http://www.lazywinadmin.com/2014/03/powershell-read-excel-file-using-com.htmlLast week, I worked on a small PowerShell script to read a custom excel f...
分类:系统相关   时间:2015-05-08 20:02:07    阅读次数:642
可以“随时”终止的socket线程
很多人在刚学socket时,都是在线程中connect,然后while(flag) read();要停止这个线程时将falg置false,再wait,甚至直接termination(这种方式终止线程的安全隐患不在这里论述)。一般情况下的确没什么问题,但拿到一个真正的项目中时,就不太好了,这样写就很可...
分类:编程语言   时间:2015-05-08 19:46:10    阅读次数:134
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!