Skip to content

LKL does not support SMP/reentrant syscalls #72

@tommie-lie

Description

@tommie-lie

I'm currently writing an application using LKL that waits for data on a network socket using a blocking call to read() and occasionally write()s data from another application thread. Once the read() syscall has been issued, no write()s can be performed until the socket receives some data and returns from the read().
While in theory I could use select() or poll() here because the data I want to write also comes from another socket, I cannot in practice because the other socket is a non-LKL "normal" socket and we cannot mix LKL and non-LKL FDs (yet?).

I digged into the syscall handling and understand that supporting SMP is probably a bigger issue (I also don't fully understand all the internals of LKL's threading yet), but I would like to see support for it (because I have an actual use case for that) and think it should be tracked in an issue :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions