Processes and threads
What's the difference between a process and a thread? What do threads share, and what does each one keep to itself?
What's the difference between a process and a thread? What do threads share, and what does each one keep to itself?
A process is a unit of execution with its own address space and resources; a thread is a flow of execution inside it that keeps only its own stack and shares the heap. Threads are expensive and more of them than cores is waste, so you hand work to the system pool.
CS fundamentals and algorithmsShort answerAdvanced
Someone asks you, "If a device has plenty of physical memory, why do we even need virtual…
#os
ArchitectureMultiple choiceBasics
Which of these statements about Foundation's NotificationCenter are correct? Select all…
#thread
ConcurrencyShort answerIntro
In a UIKit screen you set label.text = result inside a network response callback, and…
#main-thread
ConcurrencyShort answerBasics
While the user scrolls, an on-screen countdown Timer stops, and when scrolling ends it…
#main-thread