Category "multithreading"

Infinite While True Loop in the Background (Python)

basically, I have some code like this: while True: number = int(len(oilrigs)) * 49 number += money time.sleep(1) In front of this I have a start up

How to queue a completion port action (I/O bound function) to CLR ThreadPool

I have an external library that does long running I/O. I wish to create a multithreaded application that will use ThreadPool to limit simultaneous number of thr

.NET thread-safe cached result

I have something like the following in C#: private double _x; private bool _xCalculated; private double GetX() { if (!_xCalculated) { _x = ... //

Can a thread call SuspendThread passing its own thread ID?

Can a Windows thread suspend itself with SuspendThread()? I can awake it from another one but, can it call SuspendThread(GetCurrentThreadId())?

Is a Go goroutine a coroutine?

In the Google I/O 2012 presentation Go Concurrency Patterns, Rob Pike mentions that several goroutines can live in one thread. Does this imply that they are imp

Can Powershell Run Commands in Parallel?

I have a powershell script to do some batch processing on a bunch of images and I'd like to do some parallel processing. Powershell seems to have some backgrou