A thread is a program execution context which executes instructions sequentially. Multiple threads can exist within a process, and thus are able to share memory - facilitating easy communication between them.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Phoenix LiveView - Animated Sparkles JS Hook | |
Ported from this excellent React tutorial: | |
https://www.joshwcomeau.com/react/animated-sparkles-in-react | |
SETUP: | |
Add to your tailwind.config.js theme.extend.animation: | |
"sparkle-spin": "sparkle-spin 600ms linear forwards", |
Processes are the mechanisms through which we can run multiple programs at a time. It is easy to confuse programs with processes, so to be clear: A program is a set of machine-language instructions which are stored in a file. When this program is run, it is encapsulated within a process. In this way, a process is a program in action. Every process is allocated it’s own chunk of memory. They exist in address spaces separate to one another in order to easily keep track of the state of each process and its resources.