Producer / Consumer - I/O Disk
Posted
by Pedro Magalhaes
on Stack Overflow
See other posts from Stack Overflow
or by Pedro Magalhaes
Published on 2010-06-06T22:39:35Z
Indexed on
2010/06/06
22:42 UTC
Read the original article
Hit count: 344
threads
|producerconsumer
Hi,
I have a compressed file in the disk, that a partitioned in blocks. I read a block from disk decompress it to memory and the read the data.
It is possible to create a producer/consumer, one thread that recovers compacted blocks from disk and put in a queue and another thread that decompress and read the data?
Will the performance be better?
Thanks!
© Stack Overflow or respective owner