Core Java With OCJP/SCJP:Concurrent Collections Part-19||CopyOnWriteArraySet vs synchronizedSet()

preview_player
Показать описание
java
Basic Java Tutorial for beginners
Basic Java Programming for beginners
Core Java By Durga Sir
Core Java
Core Java Video Tutorials
Core Java Tutorial for beginners with examples
Core Java Tutorial
Core Java DURGASOFT
Durgasoft Core Java
Durgasoft Java
durga software solutions core java videos
durga software solutions java
How to learn java
How to learn java programming language for beginners
learn java
learn java programming for beginners
programming in java
understanding java
java application development tutorial
java beginner tutorial
java basics for beginners
java for beginners
java lessons
java lectures
java language tutorial for beginners
java programming tutorial
java programming for beginners
java tutorial for beginners
java tutorial
java tutorial by durga sir
====================================
Java tutorial by durga sir

Java 9 by durga sir

Java 1.8 Version New Features by Durga sir

Adv Java JDBC Tutorial by Durga sir

OCJA 1.8 Java SE 8 Programmer - I (1Z0 - 808 ) By Durga sir

Core Java by NagoorBabu sir

Advenced Java by Nagoorbabu sir

CoreJava by Ratan

Advanced Java jdbc by Ratan

Advjava tutorials - JSP by Ratan

Adv java servlets tutorial by ratan

Servlet and JSP Tutorial by anji reddy

Advanced Java Jdbc by Anjireddy

Hibernate byAnjireddy

Struts by Anjireddy

Spring by Mr.AnjiReddy

ADV JAVA by Naveen

Spring by Mr.Naveen

Hibernate by Mr. Naveen

Struts by Mr.Naveen
Рекомендации по теме
Комментарии
Автор

Sir i completed all this playlist. Thank you . You are guru

rubbish
Автор

Completed watching on Oct 13, 2024 at 4.27 AM

ranveervaghela
Автор

Difference between CopyOnWriteArraySet and synchronizedSet - 04:42(check content of board)

prakherjindal
Автор

Sir please upload videos on rest of the Concurrent Collection Classes like BlockingQueue, ConcurrentSkipListMap and ConcurrentSkipList Set

rahulchowdhury
Автор

Sr please upload Blocking queue Concept as well. thanks

SaurabhGupta-qync
Автор

sir, in case of Syncronized list or set, if one thread is reading, other thread wont get the lock to do the operations. isnt' it.But point 2 contradicts that.

public class SyncronizedList {
private static List<String> list = new ArrayList<>();
static {
list.add("run");
list.add("walk");
list =
}

public static void main(String[] args) {

Thread thread = new Thread(() -> {
list.add("talk");
list.add("pray");

try {

} catch (InterruptedException e) {
e.printStackTrace();
}

list.add("sleep");
});

thread.start();

list.forEach((ele) -> {
System.out.println(ele);
try {

} catch (InterruptedException e) {
e.printStackTrace();
}

});
System.out.println(list);
}

}

nehakumari-lsec
Автор

Sr can you tel me plz In case of synchronizedSet() at a time only one thread is allowed to operate then how there will be CME because of another thread ?

koustubhmokashi
Автор

As per the point 2, only 1 thread allowed to modify synchronizedSet so we will not get CME, so its should be (point 3)FAIL- SAFE, please confirm.

simitd