2019-10-31 20:43:47 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								=========
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								## Core Java Concurrency 2 Examples
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### Relevant Articles: 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								-  [Using a Mutex Object in Java ](https://www.baeldung.com/java-mutex ) 
						 
					
						
							
								
									
										
										
										
											2020-05-05 09:21:38 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								-  [Testing Multi-Threaded Code in Java ](https://www.baeldung.com/java-testing-multithreaded ) 
						 
					
						
							
								
									
										
										
										
											2022-11-11 08:56:17 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								-  [How to Check if All Runnables Are Done ](https://www.baeldung.com/java-runnables-check-status ) 
						 
					
						
							
								
									
										
										
										
											2023-07-13 14:01:58 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								-  [Parallelize for Loop in Java ](https://www.baeldung.com/java-for-loop-parallel ) 
						 
					
						
							
								
									
										
										
										
											2023-12-17 07:05:43 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								-  [How to Effectively Unit Test CompletableFuture ](https://www.baeldung.com/java-completablefuture-unit-test ) 
						 
					
						
							
								
									
										
										
										
											2024-02-17 06:33:36 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								-  [How to Collect All Results and Handle Exceptions With CompletableFuture in a Loop ](https://www.baeldung.com/java-completablefuture-collect-results-handle-exceptions ) 
						 
					
						
							
								
									
										
										
										
											2024-03-01 14:16:25 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								-  [CompletableFuture runAsync() vs. supplyAsync() in Java ](https://www.baeldung.com/java-completablefuture-runasync-supplyasync ) 
						 
					
						
							
								
									
										
										
										
											2024-03-01 14:23:58 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								-  [Difference Between thenApply() and thenApplyAsync() in CompletableFuture ](https://www.baeldung.com/java-completablefuture-thenapply-thenapplyasync )