codingo / Interlace

Easily turn single threaded command line applications into a fast, multi-threaded application with CIDR and glob support.
GNU General Public License v3.0
1.21k stars 179 forks source link

Multithreading doesn't work on Windows #174

Open mkey-hu opened 2 years ago

mkey-hu commented 2 years ago

On Widows OS tasks are executed in a serialized way

interlace -t a,b,c -c "timeout /t 10 & echo _target_"
=====================================================
Interlace v1.9.6        by Michael Skelton (@codingo_)
                        & Sajeeb Lohani (@sml555_)
=====================================================
  0%|                                                                                            | 0/3 [00:00<?, ?it/s][13:34:29] [THREAD] [timeout /t 10 & echo a] Added to Queue

Waiting for 10 seconds, press a key to continue . 0
a

 33%|████████████████████████████                                                        | 1/3 [00:09<00:19,  9.71s/it][13:34:39] [THREAD] [timeout /t 10 & echo c] Added to Queue

Waiting for 10 seconds, press a key to continue . 0
c

 67%|████████████████████████████████████████████████████████                            | 2/3 [00:19<00:04,  4.85s/it][13:34:49] [THREAD] [timeout /t 10 & echo b] Added to Queue

Waiting for 10 seconds, press a key to continue . 0
b

100%|████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:29<00:00,  9.92s/it]
stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.