Grokking the Coding Interview: Patterns for Coding Questions
Ask Author
Back to course home

0% completed

Vote For New Content
Shashwat Kumar
next() function is actually not asynchronous because of calling checkThread()

Shashwat Kumar

Sep 6, 2024

Even though we have a separate thread for processing traverseLeft for right subtree in next() function, it actually is still synchronous because it first checks if all threads have been processed by calling checkThread and then only creates a new thread.

0

0

Comments
Comments

On this page