Hooking virtual threads and sync code: Explain and exemplify via a meaningful snippet of code how virtual threads and sync code work together.