File IO and the Swing Event Dispatch Thread

Dávid Karnok akarnokd at gmail.com
Tue Dec 1 12:59:28 UTC 2020


Hello.

I watched the recent interview ( https://www.youtube.com/watch?v=EDVesJ-yJ6U
) considered the following scenario: in a Swing desktop app, the user
clicks a button which then reads through a file, right there in the
ActionListener.

If I understood the interview correctly, the Event Dispatch Thread won't be
supporting suspensions so one has to make a custom scheduler that delegates
back to it, right? Second, I presume async file IO needs OS support (
https://cr.openjdk.java.net/~rpressler/loom/loom/sol1_part1.html ) thus
could/would it work on, let's say Windows, without ending up with arbitrary
number of blocked OS threads?

-- 
Best regards,
David Karnok


More information about the loom-dev mailing list