Skip to content

Stackful and stackless task unified #45

@joey-shao

Description

@joey-shao

I have push async branch, the duty of this branch is to unified the stackful and stackless task in abstraction. To finish the whole work, we should create a real "async os". Stackful task is same to original task, needs kernel stack ,execution context and enable preempt; while stackless task don't need the explicitly execution context, kernel stack and disable kernel preempt, the executor self containing the whole execution condition.

Two major work I think,

  1. should we redesign some task api, suck as park, unpark
  2. remove block_on and spread 'async'

I am not sure my implementation here is follow the original purpose, please check and tell me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions