मनोज वर्मा

864 posts

मनोज वर्मा

मनोज वर्मा

@knapsack120

Socially Inept

Barabanki, India Katılım Kasım 2021
320 Takip Edilen16 Takipçiler
sysxplore
sysxplore@sysxplore·
What's the first thing you do after a new Linux installation?
sysxplore tweet media
English
253
78
1.8K
137.3K
Kshitij Anand
Kshitij Anand@kshitijandquant·
Learn and implement with peers!!
Kshitij Anand tweet media
English
590
47
1.3K
112.9K
0b1d1
0b1d1@_0b1d1·
🐧 LINUX FUNDAMENTALS – The Complete Beginner’s Guide (Free PDF) ⚙️💡 If you’re stepping into Cybersecurity, DevOps Cloud or System Administration one skill you must get comfortable with is Linux. It’s the backbone of servers tools and almost everything you’ll work with in tech
0b1d1 tweet media
English
588
245
1.7K
142.2K
0b1d1
0b1d1@_0b1d1·
📘 The One-Liner Linux Commands Handbook your go-to reference for mastering the Linux command line. (Comment “PDF” for the full guide)
0b1d1 tweet media
English
721
145
1.2K
121.1K
Mischa van den Burg
Mischa van den Burg@mischavdburg·
Linux is the most important skill to learn if you want to: - Get a 6 figure tech job - Work remotely - Start a freelancing business - Escape Big Tech data farming I created a FREE Linux Starter Course. Comment "Linux" and I'll DM it to you (follow me first or I cant DM you)
English
2.9K
447
8.1K
552.1K
Mohit Mishra
Mohit Mishra@chessMan786·
Anatomy of Process
Mohit Mishra tweet media
English
2
18
111
5.2K
Mohit Mishra
Mohit Mishra@chessMan786·
𝐔𝐬𝐞𝐫 𝐋𝐞𝐯𝐞𝐥 𝐯𝐞𝐫𝐬𝐮𝐬 𝐊𝐞𝐫𝐧𝐞𝐥 𝐌𝐚𝐧𝐚𝐠𝐞𝐝 𝐓𝐡𝐫𝐞𝐚𝐝 𝐏𝐚𝐜𝐤𝐚𝐠𝐞𝐬⁣ Thread management splits between user space and kernel space, shaping how systems handle concurrency. ⁣ ⁣In a user level threads package, threads run entirely in user space, supported by a library that manages scheduling without kernel intervention. The kernel sees only the process, maintaining a process table and perhaps a thread table indirectly through a run time system. ⁣ ⁣ This keeps operations quick, as creating or switching threads avoids costly system calls. But if a thread blocks, say on I/O, the kernel blocks the whole process, stalling all threads inside it.⁣ ⁣ Contrast that with a kernel managed threads package, where the kernel directly oversees threads. Here, the thread table resides in kernel space, allowing the OS to schedule individual threads independently. ⁣ ⁣ The process stays in user space, but threads get kernel support for true parallelism, especially on multi core systems. Blocking one thread lets others continue, improving responsiveness. The trade off comes in overhead, since every thread action involves kernel mode switches, which take more time than user level handling.⁣ ⁣ Developers pick based on needs. User level suits apps with many short lived threads where speed matters over isolation, like in some embedded systems or older libraries. ⁣ ⁣ Kernel managed shines in modern setups requiring robust concurrency, such as servers handling multiple connections. Many OS combine elements, using user level for efficiency and kernel for critical features.⁣ ⁣ Performance tuning often involves measuring context switch times and blocking frequencies. In user level, custom schedulers can optimize for specific workloads, but lack kernel's global view. ⁣ ⁣ Kernel managed provides fairness across processes but might introduce latency. Tools like profilers help spot bottlenecks in either approach.
Mohit Mishra tweet media
English
1
5
27
1.4K
मनोज वर्मा
मनोज वर्मा@knapsack120·
@chessMan786 Suppose we have cpu with more than one core, then both fork and pthreads can leverage that new core for parallel computing ? Or both use context switching ?
English
0
0
0
7
Mohit Mishra
Mohit Mishra@chessMan786·
- to create independent processes for parallel task execution - process creation in web servers, shell scripting, and parallel computing tasks - No, multithreading in C uses pthreads, not fork() - Yes, the child process has its own distinct memory space using a "copy-on-write" mechanism.
English
1
0
1
22
Mohit Mishra
Mohit Mishra@chessMan786·
𝐏𝐫𝐨𝐜𝐞𝐬𝐬 𝐂𝐫𝐞𝐚𝐭𝐢𝐨𝐧 𝐔𝐬𝐢𝐧𝐠 𝐟𝐨𝐫𝐤() 𝐒𝐲𝐬𝐭𝐞𝐦 𝐂𝐚𝐥𝐥⁣ The 𝐟𝐨𝐫𝐤() system call represents one of the fundamental mechanisms for process creation in Unix-like operating systems. ⁣
Mohit Mishra tweet media
English
1
6
91
3.6K
मनोज वर्मा
मनोज वर्मा@knapsack120·
@chessMan786 The contiguous nature for stack allocation is due to no optimization? I mean it is not guaranteed right ? Can I say memory allocation will be contiguous if the variables are inside struct or class ? Ofcourse array will be contiguous we know that.
English
0
0
0
99
Mohit Mishra
Mohit Mishra@chessMan786·
Understanding Memory And Variables In C In this article, we’ll explore the reality behind variables, how they’re stored in memory, and the implications this has for our programs.
Mohit Mishra tweet media
English
3
34
299
10K
मनोज वर्मा
मनोज वर्मा@knapsack120·
@chessMan786 When fork is needed ? Please mention it's use cases? Is this used for multithreading in c ? Child has it's own memory space ? Btw thank you
English
1
0
1
59
Mohit Mishra
Mohit Mishra@chessMan786·
The entire cycle demonstrates how operating systems handle process creation, execution, and cleanup in a controlled manner.
English
1
0
3
696
Nitesh Singh
Nitesh Singh@nitesh_singh5·
Role - SDE - Intern Expected Stipend - 35K-50K per month Location - Remote / Work From Home - Proficiency in at least one programming language - Opportunity to work on impactful projects Let us know if you are Interested 👇
English
197
18
520
44.2K
Arpit Bhayani
Arpit Bhayani@arpit_bhayani·
you're not debugging, you're just guessing. admit it.
English
84
22
768
42K
Vaibhav
Vaibhav@ig_vaibhav1·
Web3 changed my life! This is my way of paying it back to the community. Join our Web3 community if you're just getting started :)
Vaibhav tweet media
English
168
12
706
54.3K
Abhishek
Abhishek@abhishekcode42·
Bhai hear this crazy thing, apparently there is a correlation between your walking speed and IQ. High-IQ people seems to have high walking speed.
English
40
8
441
33.1K
Divya Porwal
Divya Porwal@divyaporwal_·
When I was taking an interview, candidate couldn’t even solve 1 question in 30 min He was anxious & lost I said, “Relax, let's start from beginning” He smiled, took a breath & solved 2 questions in the next half hour I was nervous in my 1st interview too. Let’s lift each other up
English
21
18
706
21.6K
Subham Surana 🧊
Subham Surana 🧊@TheSuranaverse·
💼 Hiring Opportunity 1️⃣ C++ Developer (Remote 10-40LPA) 2️⃣ Python Dev (Remote Exp.) 3️⃣ Flutter Dev (Noida) 4️⃣ SDE-1 (BLR, HYD, Gurgaon) 5️⃣ Graphic Designer (Remote) 6️⃣ Social Media Intern Comment below the role you want to apply for 👇 (Must Like, RT & Follow to receive DM)
Subham Surana 🧊 tweet media
English
262
100
359
33.3K