<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=DE style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal>Hi everybody,<br><br>I am currently writing my thesis which, for some part, also covers Virtual Threads. So far, I get how everything works but I don’t understand how the work-stealing nature of the ForkJoinPool is used by Virtual Threads. <br>I know the benefits of a work-stealing scheduler and how the ForkJoinPool uses ForkJoinTasks. But how do Virtual Threads „fork“ tasks which can be stolen by other threads? Do they even do that? As far as I understand it, the same scheduling result could be achieved by using any other thread pool with the amount of available CPU cores as the number of threads. After all, the ForkJoinPool needs ForkJoinTasks to use the work-stealing logic. Or am I mistaken here? </p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Could you maybe point me to some ressources that explain why you decided to use the ForkJoinPool and how it is used? I couldn’t find any online. <br><br>Thank you for your help.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Cheers,<br><br>Jonas Schlecht<o:p></o:p></p></div></body></html>