---
title: "Bikash Mainali (@bikash8848) | Hashnode"
description: "Software Engineer. Read the latest articles by Bikash Mainali on Hashnode."
url: "https://hashnode.com/@bikash8848"
---

@bikash8848

# Bikash Mainali

@bikash8848 · Joined August 2022

Software Engineer

[Website](https://bikashmainali.com.np/)

### [How the Call Stack Works (and How Recursion Uses It)](https://dsa-3956.hashnode.dev/how-the-call-stack-works-and-how-recursion-uses-it?utm_source=hashnode&utm_medium=feed)

Let's build this up from the very beginning, one idea at a time. Part 1: What is a "stack" (the data structure)? Before touching code, picture a stack of plates: You can only add a plate to the top

6 min read · [dsa-3956.hashnode.dev](https://dsa-3956.hashnode.dev/how-the-call-stack-works-and-how-recursion-uses-it?utm_source=hashnode&utm_medium=feed)

[Jul 6](https://hashnode.com/posts/how-the-call-stack-works-and-how-recursion-uses-it/6a4b4e9949ed12e53e2abd49)

### [Merge Sort:](https://dsa-3956.hashnode.dev/merge-sort?utm_source=hashnode&utm_medium=feed)

package sort; import java.util.Arrays; public class L01\_MergeSort { public static void mergeSort(int\[\] arr) { // Base case: if array has 1 element, it’s already sorted if (arr.l

6 min read · [dsa-3956.hashnode.dev](https://dsa-3956.hashnode.dev/merge-sort?utm_source=hashnode&utm_medium=feed)

[Jul 6](https://hashnode.com/posts/merge-sort/6a4b30c5642e2bd9296dcda1)

### [Event-Driven: Clean Decoupling with Publishers & Listeners in Spring Boot](https://bikash8848.hashnode.dev/event-driven-clean-decoupling-with-publishers-listeners-in-spring-boot?utm_source=hashnode&utm_medium=feed)

The Spring event system lets different parts of your application talk to each other without being directly connected. Think of it like a radio station (publisher) and radios (listeners) — the station

3 min read · [bikash8848.hashnode.dev](https://bikash8848.hashnode.dev/event-driven-clean-decoupling-with-publishers-listeners-in-spring-boot?utm_source=hashnode&utm_medium=feed)

[May 20](https://hashnode.com/posts/event-driven-clean-decoupling-with-publishers-listeners-in-spring-boot/6a0d59857e4b2e77c0628a24)

### [The Basics: What is a CPU Core?](https://bikash8848.hashnode.dev/the-basics-what-is-a-cpu-core?utm_source=hashnode&utm_medium=feed)

A CPU core is a physical processing unit inside your CPU chip. Think of it as a worker in a factory. A single-core CPU has one worker; a quad-core CPU has four. Each core can independently execute ins

7 min read · [bikash8848.hashnode.dev](https://bikash8848.hashnode.dev/the-basics-what-is-a-cpu-core?utm_source=hashnode&utm_medium=feed)

[Mar 23](https://hashnode.com/posts/the-basics-what-is-a-cpu-core/69c08ab5d9da55a9a503841b)

### [How to Use Locks in Multi-Threaded Java Program](https://bikash8848.hashnode.dev/how-to-use-locks-in-multi-threaded-java-program?utm_source=hashnode&utm_medium=feed)

1\. Exclusive Lock(ReentrantLock): Only one thread can acquire the lock at a time. package org.example.concurrency; import java.util.ArrayList; import java.util.List; import java.util.concurrent.locks

3 min read · [bikash8848.hashnode.dev](https://bikash8848.hashnode.dev/how-to-use-locks-in-multi-threaded-java-program?utm_source=hashnode&utm_medium=feed)

[Mar 22](https://hashnode.com/posts/how-to-use-locks-in-multi-threaded-java-program/69c0822fd9da55a9a5fd9f82)
