#include
by darkslack - C/C++ - 2011-12-28 19:50:58 阅读(10879) 回复(5)
sizeof(off_t) 对于默认的头文件是32位,而在fdisk中是64位的, 这里就出现了seek硬盘的时候溢出 请高手帮忙解决该问题 [ 本帖最后由 0vk0 于 2009-6-27 22:10 编辑 ]
如题 手头有一本书讲线程的 提到如果对一个32位整型变量赋值,如果CPU寄存器是16位的 那么存在一个竞争状态,赋值过程中高16位和低16位的变化不是同时的 我现在有个程序,一共有两个线程 有两个全局变量 volatile off_t file_end; volatile off_t file_start; 线程A会有file_end++; 线程B会有file_start++; 在线程A中,如果file_start >= file_end,线程A会休眠1秒 在线程B中,计算file_end - file_start的数值,如果这个数...
APUE第十二章第九节说: off和addr的值(如果指定了MAP_FIXED)通常应当是系统虚存页长度的倍数 addr这样要求还好理解(可能是为了尽可能的把内容放到一个虚存页上吧),但为何off也这样要求呢?我想从文件的那个字节开始映射,和虚存页长度有什么区别? thx! [ 本帖最后由 welcome008 于 2008-1-4 13:19 编辑 ]
我写了store procedure ,tran mode is unchained ;exec p pname 时正常 但在页面里调用时报:com.sybase.jdbc2.jdbc.SybSQLException: Stored procedure 'convertClient' may be run only in unchained transaction mode. The 'SET CHAINED off' command will cause the current session to use unchained transaction mode.
Sometimes it is necessary to be more quiet, when using the shell. For example, when working in groups, or if you're just annoyed of the beep .BSD爱好者乐园|b