I am no developer. I prefer quick and dirty scripts that can get stuff done which, to be honest, I am too lazy to do myself. But, one of the things that I thought was lacking is the ability to perform multithreaded actions through batch scripting.
Multithreaded applications have the potential to run much faster than single-threaded applications, given the right circumstances. With batch scripts, we often write routines that spend a lot of their time waiting for other things to finish; downloading sets of files, for example, or pinging a range of servers to see if they are alive. Blocking functions (ie, where the scripts stalls until they are done) that spend their time waiting for other things are the big beneficiaries of multithreading. With some care, we can get the same benefits by ‘multithreading’ our batch scripts.
I have a number of batch scripts in my repository that could benefit from something like this. I feel some recoding coming on!If you found this post useful, why don't you buy me a cup of coffee to show your gratitude?