green-thread-library:绿色线程库

时间:2021-03-11 01:21:27
【文件属性】:
文件名称:green-thread-library:绿色线程库
文件大小:2.67MB
文件格式:ZIP
更新时间:2021-03-11 01:21:27
C g线程 一个在用户空间(非内核模式)中运行的(绿色)线程库,使用信号中断在上下文之间进行交换。 使用POSIX的ucontext库在上下文之间交换。 建造与使用 有关构建和使用库的说明。 要求 要求如下所示: ucontext用于上下文管理的POSIX库 建造 使用CMake来配置和生成构建环境。 建立图书馆! 用法 包括green.h 就像使用pthreads一样使用该库! 编译时链接到gthread.lib
【文件预览】:
green-thread-library-main
----src()
--------mutex.h(373B)
--------globals.c(219B)
--------green.c(3KB)
--------cond.h(504B)
--------green.h(696B)
--------queue_utility.h(213B)
--------utility.h(174B)
--------globals.h(286B)
--------cond.c(2KB)
--------utility.c(304B)
--------mutex.c(1010B)
--------queue_utility.c(2KB)
----.vs()
--------green-thread-library()
--------ProjectSettings.json(50B)
--------VSWorkspaceState.json(119B)
--------slnx.sqlite(88KB)
----README.md(739B)
----tests()
--------test_cond.c(740B)
--------test.c(829B)
--------example1.c(200B)
--------test_general.c(3KB)
--------prod_cons.c(2KB)
--------example2.c(514B)
--------test_interrupt.c(785B)
--------test_mutex.c(900B)
--------example3.c(726B)
----.gitignore(430B)

网友评论