Simon Richter: Threads
Miriam, coroutines have the same problem as threads, futures and all the other interesting concepts out there: they are perceived as a magic bullet when they are merely one tool in the great toolbox.
Whether a tool is appropriate depends on the job. Postgres, for example, handles each connection in a separate process, which adds a lot of complexity to their internal structures as all concurrent accesses need to be handled properly. However, SQL's transaction and isolation semantics make a single-threaded implementation almost as hard to implement, so the correct answer was to use threads.
The biggest problem with threads is data consistency, and this is where almost all negative examples originate: some variable was not declared volatile, some lock not held long enough, some set of locks taken in the wrong order. A rule of thumb should be: if your threads need to interact, then you should not be using threads. If you have to compute something which will take longer, it is absolutely fine to start a new thread, but then you will have to protect the inter-thread communication appropriately. What is appropriate depends on the problem again; in most cases it will be message queues which allow the other thread to handly the request when it is in a safe state.
Coroutines come in at a point where "you should not be using threads", by essentially allowing me to write a producer-consumer model as if it were threaded, and then letting the compiler build a nonthreaded version from that. In the C++ world, most algorithms can not be combined directly because they are written as a consumer/producer loop and cannot be suspended -- coroutines will make that possible.