Quantcast
Viewing all articles
Browse latest Browse all 3791

Do preemptive threads block when input/output calls hang?

I’m considering trying preemptive threads in one of my apps. That app searches for files in a selected folder, with given criteria. When searching over network shares, it’s possible for the app to hang waiting for input/output calls, even in cooperative threads, so I made a helper to handle this.
I’m now wondering whether a preemptive thread waiting for input/output calls would also block the whole app like cooperative ones do. If not, I’d get back to a single app model.

But I hardly can reproduce that on demand, so I thought I’d ask here. Has anyone already tried preemptive threading in Xojo with files access blocking (or not) the whole app?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 3791

Trending Articles