• Post Reply Bookmark Topic Watch Topic
  • New Topic

BlockingQueue - sentinel value

 
Pho Tek
Ranch Hand
Posts: 782
Chrome Python Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From the javadoc

A BlockingQueue does not accept null elements. Implementations throw NullPointerException on attempts to add, put or offer a null. A null is used as a sentinel value to indicate failure of poll operations.

What is actually a "sentinel value" ?

regards,

Pho
 
Shahnawaz Shakil
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Below link will help

http://en.wikipedia.org/wiki/Sentinel_value
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!