systemCallback() and packetArrived() synchronization problem #65
-
|
Let's think in a single host. Are the
In the case of a real OS, I think the syscall handler can run on multiple threads. But how is Kenz's virtual environment structured? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Extra explanation) while the server process is busy dealing with Server may have been playing with the queue embeded in the listening socket during Can this type of problem occur in KENS? TL;DR : Does KENS functions work in blocking (other functions are blocked when systemCallback() is called) or non-blocking way (other functions may interrupt systemCallback())? |
Beta Was this translation helpful? Give feedback.
-
No, they run on the same thread.
No, you don't have to do synchronization (mutex, lock, condvar, etc.)
No
The word blocking would be misleading. The functions work in non-preemptive way. |
Beta Was this translation helpful? Give feedback.
No, they run on the same thread.
KENS is a multi-threaded program, but the only one thread runs at a time.
No, you don't have to do synchronization (mutex, lock, condvar, etc.)
No
The word blocking would be misleading. The functions work in non-preemptive way.