Skip to content

Remove the Sandbox Execution thread , replace elapsed time based timeouts with a Kill function #471

@simongdavies

Description

@simongdavies

The way that Sandbox execution can be terminated by the host is inefficient and inflexible, at present we control this from within the host library and only allow termination based on wall clock execution times, in addition this is implemented by creating a thread for each Sandbox which results in additional context switching.

  1. Implement a Kill function in the API that takes a pointer or handle to a sandbox.
  2. Remove the additional thread creation and execute guest calls on the callers thread.
  3. Implement a sample that shows how to use the Kill API to terminate sandboxes after n milliseconds of activity

Metadata

Metadata

Assignees

Labels

area/infrastructureConcerns infrastructure rather than core functionalityarea/performanceAddresses performancelifecycle/fixedThis issue has been resolved

Projects

Status

In Progress

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions