Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support temporary/fixed virtual machines #350

Open
RodrigoDornelles opened this issue Sep 23, 2022 · 0 comments
Open

support temporary/fixed virtual machines #350

RodrigoDornelles opened this issue Sep 23, 2022 · 0 comments
Labels
enhancement New feature or request important

Comments

@RodrigoDornelles
Copy link
Owner

categorize into two types of virtual machine, fixed and temporary. the purpose is to facilitate the creation and destruction of machines to simulate memory protection feature.

it can also be useful in projects where machines are constantly created and destroyed.

fixed machine

are indicated for when greater control over the machine is needed, such as an orchestrator embedded in another language. (ideal for working with pools)

  • it can be restarted, for reuse.
  • its ID is unique during the running program.
  • the lang_3bc_destroy function just erase data but keep reserved space.
    • use lang_3bc_really_destroy function to actually destroy when needed.

temporary machine

  • can't be reused
  • your ID is reusable.
    • the ID is not unique over time, but it only exists in one instance at a time.
    • when deleted its ID is in a list for reuse, in which when a new temporary machine is created it can end up using it.
  • the functions lang_3bc_destroy and lang_3bc_really_destroy completely destroy the machine.
@RodrigoDornelles RodrigoDornelles added enhancement New feature or request important labels Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request important
Projects
None yet
Development

No branches or pull requests

1 participant