In the bounded buffer problem ____________
A: there is only one buffer
B: there are n buffers ( n being greater than one but finite)
C: there are infinite buffers
D: the buffer size is bounded
A: there is only one buffer
B: there are n buffers ( n being greater than one but finite)
C: there are infinite buffers
D: the buffer size is bounded
举一反三
- C语言文件操作函数fread(buffer,size,n,fp)的功能是( ) A: 从文件fp中读n个字节存入buffer B: 从文件fp中读n个大小为size字节的数据项存入buffer中 C: 从文件fp中读入n个字节放入大小为size字节的缓冲区buffer中 D: 从文件fp中读入n个字符数据放入buffer中
- (5)The more concentrated the components of a buffer, the greater the buffer capacity. A: 正确 B: 错误
- 【13.5】 fwrite函数的一般调用格式是( ) A: fwrite(buffer, count, size, fp); B: fwrite(fp, size, count, buffer); C: fwrite(fp, count, size, buffer); D: fwrite(buffer, size, count, fp);
- Producer(){While(1){ ; ;Buffer(in)=m;In=(in+1)%n; ; ;}}consumer(){While(1){ ; ;m= Buffer(out);out=(out+1)%n; ; ;}
- A buffer can only sustain its pH within its buffer capacity.