join() vs sleep() in Java

Let’s tackle join() vs sleep(), two foundational thread blocking methods under Thread Fundamentals. While both methods pause execution of the calling thread, their underlying mechanisms, dynamic conditions, and monitor lock behaviours are fundamentally different. Core Concepts & Comparison Comparison Summary Feature Thread.sleep(ms) thread.join() Type Static method (Thread.sleep) Instance method (t.join()) Wake-up Trigger Time expiration or […]

Continue Reading
SAUSECODE - Story of Network Stack

The Story of The Network Stack.

Ever wondered when you heard they say Network “Switches”, “Routers”, or “Network Cards” why there are so much variation of such devices in a network?

Or when you came across a place where you have to setup IP address, or when you heard about a MAC address for the first time why there are so many identifiers as such?

Once you read this post you will understand what really is the network stack is, what roles all those devices play, and most importantly why? And also, I think this post will help you to see the networking big picture by connecting the dots.

Continue Reading