1. partial block operations are inefficient. The operating system has to “fix up” your I/O by ensuring that everything occurs on block-aligned boundaries and rounding up to the next largest block 用户级程序可能在某一时刻仅仅读写一个字节,这是极大的浪费.Each of those one-byte…
1.C语言字符串 字符串(character string)是一个或多个字符的序列,例如:"Zing went the strings of my heart!" C语言没有专门用于储存字符串的变量类型,字符串都被储存在char类型的数组中.数组由连续的存储单元组成,字符串中的字符被储存在相邻的存储单元中,每个单元储存一个字符.如下图: 注意图4.1中数组末尾位置的字符\0.这是空字符(null character),C语言用它标记字符串的结束.空字符不是数字0,它是非打印字符,其AS…