Open in app

Sign In

Write

Sign In

Java Jedi
Java Jedi

33 Followers

Home

About

Nov 24, 2022

Multithreading — synchronization, race conditions, class level and method level synchronization.

Synchronization is one of the most essential and challenging concepts in multithreading. It ensures the consistency of shared data between threads. Since threads share the same memory, they access data from shared memory and race conditions happen. Race condition is a situation when two or more threads try to access…

Multithreading

7 min read

Multithreading — synchronization, class level and method level synchronization, wait and notify.
Multithreading — synchronization, class level and method level synchronization, wait and notify.
Multithreading

7 min read


Nov 14, 2022

Multithreading — memory management of threads

As we have discussed before in the posts, threads and processes are a bit different concepts. The difference between threads and processes in terms of memory management is that threads within one process run in a shared memory while processes run in a separate memory. There are two types of…

Multithreading

2 min read

Multithreading — memory management of threads, synchronization
Multithreading — memory management of threads, synchronization
Multithreading

2 min read


Nov 7, 2022

Multithreading — thread life cycle, thread join(), daemon threads

Thread life cycle In Java, a thread passes four states during its life cycle: - New - Running - Waiting — [Blocked, Waiting, TimedWaiting] - Dead New — when a thread is instantiated and ready to use. It is the state when we have not started the thread yet. Running — a thread enters…

Programming

6 min read

Multithreading — thread life cycle, thread join(), daemon threads
Multithreading — thread life cycle, thread join(), daemon threads
Programming

6 min read


Oct 21, 2022

Multithreading — threads and processes, time-slicing algorithm

The terms of process and threads are commonly used when it comes to multithreading. In this post, we will explore these concepts in detail and many more.

Multithreading

3 min read

Multithreading — threads and processes, time-slicing algorithm
Multithreading — threads and processes, time-slicing algorithm
Multithreading

3 min read


Oct 20, 2022

Introduction to Multithreading in Java

No matter what language you use to write your programs, they are all sequential by default. That is, all the instructions we write are executed line by line by the operating system. The next line of code cannot start execution before the current finishes and waits until the current line…

Multithreading

5 min read

Introduction to Multithreading in Java
Introduction to Multithreading in Java
Multithreading

5 min read


Sep 22, 2022

Sql functions and stored procedure

Sql just like any other programming language provides functions and stored procedures. In this post, we will explore the functions and stored procedures in PostgreSQL. …

Backend

5 min read

Sql functions and stored procedure
Sql functions and stored procedure
Backend

5 min read


Feb 27, 2022

What is a Deque?

A double-ended queue, or Deque, is a linear collection of data that takes the concept of Queue into a step further. Deque is very similar to Queue, however, it complements Queue with some more useful operations. Deque allows adding items to both ends and removing items from both ends as…

Data Structures

4 min read

What is a Deque?
What is a Deque?
Data Structures

4 min read


Feb 22, 2022

What is Competitive Programming?

Competitive programming combines two topics: the design of algorithms and the implementation of algorithms. Design of Algorithms. The core of competitive programming is about inventing efficient algorithms that solve well-defined computational problems. The design of algorithms requires problem-solving and mathematical skills. …

Competitive Programming

2 min read

What is Competitive Programming?
What is Competitive Programming?
Competitive Programming

2 min read


Feb 21, 2022

What is a Queue?

Queue is a linear, or sequential, collection of items that is very similar to Stack but with few differences. As it is clear from its name, it functions as a real queue. The items added the earliest are removed first — FIFO (First In, First Out) and items added the…

Computer Science

3 min read

What is a Queue?
What is a Queue?
Computer Science

3 min read


Feb 8, 2022

What is a Stack?

Stack is a linear, or sequential, collection of data that are, as the name says — stacked, or put on top of each other. Stack is one of the most fundamental and earliest-developed concepts in Computer Science. …

Computer Science

4 min read

What is a Stack?
What is a Stack?
Computer Science

4 min read

Java Jedi

Java Jedi

33 Followers

The Path of Java Jedi

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech