Npl said:How would you multithread zipping one File in Java?
I have never tried but it should be possible.
However it shouldn't be very efficient unless the communications between the threads and memory access are lightning fast.
The problem aint multithreading, thats a pretty simple concept. The problem is taking your code and actually split it into as-much-independend-as-possible Parts. The problem is at a much higher level than C++ or Java - its a design problem. For serial Problems (as like zipping since its dependand on previous data ) its nontrivial or even impossible.
I know but i said that the job would be easier,not much easier, with a language such as Java.
Off course the virtual machine or the compiler should be optimised to get much better performance.