multiple simultaneous processes - multi-threading?

1 visualización (últimos 30 días)
Mike Wilson
Mike Wilson el 10 de Mzo. de 2017
I have a job that builds statistical comparisons of > thousand files. Those are large so stored in gzip form. Current code is simple linear process. It doesn't gunzip() new files until it's done with previous files. I've optimized the stats part now to the point now that the gunzip() step is source of significant slowdown. Is there a way i can start a separate process (thread?) that just does the gunzip() step and run that ahead of the statistical processing? That way the stats routine could simply find and read the (already) gunzipped files. It already does clean up - removing gunzipped files as it finishes with them. I'm a hack at this (coder by necessity vs. profession), so simple answer or example would be way more useful than anything complicated.
Thanks!
Mike

Respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by