Skip to content

Implement GoOp #8426

@wangkuiyi

Description

@wangkuiyi

Go has goroutines, and the keyword go starts a goroutine. Fluid needs GoOp as the go keyword in Go.

Goroutines are green threads, which are not scheduling preemptively; instead, they actively give up the CPU time by hanging themselves up in a waiting queue.

Our first version doesn't have to implement green threads and the scheduling system. We could rather just create OS threads using std::thread.

The challenging part of this work is to make the newly created thread runs a block in a ProgramDesc. The WhileOp could be a good reference.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions