The ability to add processes, especially to load different applications in them (which you can with commands we didn’t talk about last chapter), is a useful capability. But there are some downsides. Getting one process to communicate with another, for example, involves an outside mechanism. You can write to a file and have the second process read that file in, so long as you have some kind of file locking in place, so reads and writes don’t happen at the same time. You can use a standard UNIX/Linux tool called a pipe, which looks like a file ...
8. One Process, Multiple Threads
Get Raspberry Pi for Arduino Users: Building IoT and Network Applications and Devices now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.