An archive of community.esquilo.io as of Saturday January 26, 2019.

Read / Write File Access

dawildorcinator

I am interested to know if the system supports multiple threads reading / writing to the same file?

Example:

Logging data 1x a second from a process..... another process reading the file from the beginning of the file.

Thoughts?

dawildorcinator

10 days and no response??

Scott_Shumate

The underlying operating system uses multiple threads (RTOS tasks), but the Squirrel VM only allows one thread. We made the design decision not to support multi-threading in Squirrel to keep things simple. Most of the time, you can arrange things so that you handle asynchronous events from a loop without blocking.