• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

Help on Core Concepts - Confusing  RSS feed

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

1. what is the differences between connection and a thread?
2. when people say DB supports connection pooling does connecting pool size and thread are same?
3. why JDBC is a blocking I/O and R2DBC claims non-blocking which don't understand
4. pool of connection vs pool of threads

Need one or 2 practical example. If anything with image/diagram would be very much useful.

Thanks.
 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. what is the differences between connection and a thread?

one connection was created contain one thread

2. when people say DB supports connection pooling does connecting pool size and thread are same?

pool size and thread are same

3. why JDBC is a blocking I/O and R2DBC claims non-blocking which don't understand

blocking I/O Wait while connecting
non-blocking No Wait while connecting

4. pool of connection vs pool of threads

pool of connection  Generally used network TCP UDP

pool of threads  Generally Server thread pool
 
Marshal
Posts: 13447
222
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it's best that you read some reliable source of information, like this one: Understanding Threads, Processes, and Connections so you don't get even more confused.
 
Joseph Michael
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

if

pool of connection  Generally used network TCP UDP

pool of threads  Generally Server thread pool

How does it is same ???

Is not connection pool and thread pool are different?
 
Sheriff
Posts: 5931
155
Chrome Eclipse IDE Java Postgres Database Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Connection pools and thread pools are different.  What makes you think they are the same?
 
What's gotten into you? Could it be this tiny ad?
Create Edit Print & Convert PDF Using Free API with Java
https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!