/NBBOPubSub

Small threaded application to publish random numbers into a LinkedBlockingQueue and read the highest number from that queue.

Primary LanguageJava

NBBO Publisher and Subscriber

What is this?

Small threaded application to publish random numbers into a LinkedBlockingQueue and read the highest number from that queue.

How to run?

Run the Main Class, it will create a Publisher and Subscriber and start both threads calling run on each.

Java minimum version

Java 16 for use of the keyword var