Book Image

D Cookbook

By : Adam Ruppe
Book Image

D Cookbook

By: Adam Ruppe

Overview of this book

Table of Contents (21 chapters)
D Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 10. Multitasking

In this chapter, we will look at D's multitasking capabilities with threads, fibers, and processes. We'll learn about the following:

  • Using threads

  • Passing messages with std.concurrency

  • Processing parallel data with std.parallelism

  • Using fibers

  • Creating new processes

  • Exploring thread-safe, single-locking singletons

  • Using asynchronous I/O