Ionuț Baloșin

SOFTWARE ARCHITECT AND INDEPENDENT TECHNICAL TRAINER

Menu
  • Training
    • Introduction to Software Architecture
    • Java Performance And Tuning
    • Designing High-Performance Applications
  • Talks
  • About
  • Contact
  • External Links
Menu

Tag: yield

onSpinWait() method from Thread class

Posted on 4th June 201810th February 2019 by Ionut Balosin

Introduction The purpose of this article is to describe new method onSpinWait() added to Thread class in JDK 9, including its usage, the pros and cons and also covering few other alternatives. onSpinWait() was part of JEP 285 to allow Java code to hint CPU there is a busy-waiting loop that may burn few CPU-cycles…

Read more

Catalogue of IT Courses

Follow Me

Follow @ionutbalosin

Recent Posts

  • Why Do We Need Architectural Diagrams?
  • IT Designation Definitions
  • Passing this::method reference within a loop affects performance
  • Contended locks explained – a performance approach
  • An even faster way than StackWalker API for asynchronously processing the stack frames
  • Getting the stack trace versus throwing an Exception. What is common and what is different
  • Compact Strings feature might slow down predominant UTF-16 Strings applications

Categories

© 2019 Ionuț Baloșin | WordPress Theme by Superb WordPress Themes