Whatever you do [whatever your task may be], work from the soul [that is, put in your very best effort], as [something done] for the Lord and not for men,
Colossians 3:23 AMP
https://t.co/QARc6hgZq0
Popular interview question: What is the difference between Process and Thread?
To better understand this question, let’s first take a look at what is a Program. A Program is an executable file containing a set of instructions and passively stored on disk. One program can have multiple processes. For example, the Chrome browser creates a different process for every single tab.
A Process means a program is in execution. When a program is loaded into the memory and becomes active, the program becomes a process. The process requires some essential resources such as registers, program counter, and stack.
A Thread is the smallest unit of execution within a process.
The following process explains the relationship between program, process, and thread.
1. The program contains a set of instructions.
2. The program is loaded into memory. It becomes one or more running processes.
3. When a process starts, it is assigned memory and resources. A process can have one or more threads. For example, in the Microsoft Word app, a thread might be responsible for spelling checking and the other thread for inserting text into the doc.
Main differences between process and thread:
🔹 Processes are usually independent, while threads exist as subsets of a process.
🔹 Each process has its own memory space. Threads that belong to the same process share the same memory.
🔹 A process is a heavyweight operation. It takes more time to create and terminate.
🔹 Context switching is more expensive between processes.
🔹 Inter-thread communication is faster for threads.
Over to you:
1). Some programming languages support coroutine. What is the difference between coroutine and thread?
2). How to list running processes in Linux?
--
Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): https://t.co/FIzCeaWsZV
My favorite show This Developer’s Life by @shanselman and @robconery is back. This helped me get in touch with myself as a developer. I remember playing it over and over again after they stopped airing new episodes. Rate 💯
https://t.co/suIfReJI7Q
https://t.co/i6JeA27qwV
Developers spend way too much time learning how to write code, but very few actually try to learn how to read code. What would you think of an author who jumps into writing a book, when he has never read a book? ...
📚 Looking for a roadmap to become a software developer?
Explore these 5 FREE Notion templates:
🎨 Frontend
⚙️ Backend
🖥️ Full-Stack
🔬Machine-Learning
🚄 Data-Engineering
Contains 83 resources and 40 tasks!
RT and reply with "free" and I'll DM it to you.
(need to follow)
On-demand Container Loading in AWS Lambda - @MarcJBrooker and team were awarded Best Paper by @usenix on the challenges of loading (huge) container images in #aws Lambda. https://t.co/yasdN1pEd4 (pdf)
It has been more than 4 years since I joined Google!
To prepare for my engineering interview I spent over 2 months solving coding problems and I pushed them on GitHub.
You can find all of them at https://t.co/Y0Hlr3iK7Z
Day 2 #droidconsf@HandstandSam demonstrating Kmp4free a gradle plugin for switching between Kotlin JVM and Kotlin Multiplatform. And oh he can stand with his hands😆
At @DisneyPlusHS, it's all #Kotlin and #Compose 🔥. The only XML file we have is the manifest file and a strings.xml file with 4-5 strings.
And the best part is, we're HIRING! 🚀
📩 If you're interested, DM me your name, email, and resume.
Let's Compose together 😉 (1/2)