multithreading - Multithreaded files unzip using java.util.zip.ZipEntry -
I am using:
java.util.zip
< / Pre>Reading a buffer is a one-time loop until it becomes clear. I'm reading 2 or more files from a folder, but I should do something else. I want to use threads if I use a thread for every file, so when I open the 1 GB file, I can not see any difference in unzipping small files too.
How can I share that work with Threads? I can not read the stream with different threads (I?).
Average today's computer handles can provide jump decompress data faster than a hard disk. This applies to most SSDs as well as simply limiting factors.
Therefore, any attempt to speed up the process by changing the CPU usage will fail. The best thing you can do is to get the benefit of separating reading and writing, the sources and targets are on different devices.
To make the processing after decompression multi-threaded But if you are just reading data and you are leaving, then there is no way to speed up the process.
Comments
Post a Comment