DEV Community

Dinesh G
Dinesh G

Posted on

Day 5 Journey of My Java Full Stack Development learning :HTML&CSS

Hi everyone!
Today is my fifth day of My Java Full Stack development Course And I attend My First Tech meeting in Yuniq Techmeetup (code on JVM) in Ticel Biopark at Chennai.I am going to share Tech meeting. what I learn Today.

Multithreading
Couples of characteristics
Single process is divided into multiple threads, and each thread runs independently and concurrently (often in parallel on multi-core CPUs).

Drop of basics

Process Own Address Space and System resources.
Thread Execution our Application.
Core A single processing unit within a cpu.
CPU Primary components of a CP.

Concurrencyis Time slicing

Multithreading
It enable the concurrent execution is multi task part of a program.

Command line for Code
Cd
Javac
Java

14 Seconds total

Threading Menu
Vs code
Run in main thread Thread Start();

Runnable
Daeman Thread: Run in Background Complete the task

How thread can be start: Stoppable task

Platform thread test:

System.current.time milis
Enter fullscreen mode Exit fullscreen mode

Career Thread
10000 thread carry on JVM

Main thread
Daemon thread: In Java is a low priority,background thread.Two or more thread are permanently blocked.

Deadlock
Situation in programming
Where two or more threads are permanently blocked.

Mutual enclusion
Resources involued b can only be used by one thread at a time.
Hold and wait.
No preemption.

Public class Racecondition Example {
Static int counter=0;
}
Enter fullscreen mode Exit fullscreen mode

Volatile
Volitale keyword in java.
Variable modifire used to ensure visibilty &order event.

Thread volatile thread = new thread {()
While (! Volatile Flag)
}
Enter fullscreen mode Exit fullscreen mode

Synchornization
Each thread allogate a synchorization.

Thread pool
To handle resources allocations.
Watchdog (It based on daemon thread).

Semaphere
Semaphere is controls acces to share resources.

Gc work in java
Heap memory: Young generated(eden&survior).

Gc important
Automatic memory management.
Improve application performance.

Choose your Gc
Application through put
Latency
Scalability
Memory footprint

Types of Gc in java
Serial Gc : simple
Parellel Gc : Multi threaded
CMS : concurrent
Gi Gc: predictable pause ,default in JDK 17
ZAC : Scalable,low latency

Summary
Gc is essential for memory management in java.

This is I leaned Today and This session help me to get some knowledge about JVM

Top comments (0)