Skip to content

for app development, what concurrency model should I use? #2537

Answered by achamayou
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

There's a bit of detail about threading here: https://microsoft.github.io/CCF/main/overview/threading.html

  1. Yes, there is an input ringbuffer where the host writes TCP frames, consumed by a single in-enclave dispatcher thread that hands over tasks to in-enclave worker threads via in-enclave message queues.
  2. Application code is never expected to deal with concurrency or use synchronisation primitives directly. A single handler only ever executes on the same thread, and state not scoped to a handler's execution must be kept in the KV store where it is safe to access from multiple handlers.

We will try to make this more apparent in the documentation, but CCF is really a framework, not a libr…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@ghost
Comment options

@achamayou
Comment options

@ghost
Comment options

@achamayou
Comment options

@ghost
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant