gthreads:绿色线程库

时间:2021-04-24 16:58:28
【文件属性】:
文件名称:gthreads:绿色线程库
文件大小:12KB
文件格式:ZIP
更新时间:2021-04-24 16:58:28
C g线程 在用户空间(非内核模式)中运行的(绿色)线程库。 使用POSIX的ucontext库在上下文之间交换。 建造与使用 有关构建和使用库的说明。 要求 要求如下所示: ucontext用于上下文管理的POSIX库 建造 使用CMake来配置和生成构建环境。 建立图书馆! 用法 包括green.h 就像使用pthreads一样使用该库! 编译时链接到gthread.lib
【文件预览】:
gthreads-main
----tests()
--------test_mutex.c(900B)
--------prod_cons.c(2KB)
--------example2.c(514B)
--------test.c(829B)
--------test_cond.c(740B)
--------test_interrupt.c(785B)
--------example3.c(726B)
--------example1.c(200B)
--------test_general.c(3KB)
----src()
--------mutex.h(373B)
--------queue_utility.h(213B)
--------utility.h(174B)
--------mutex.c(1010B)
--------queue_utility.c(2KB)
--------green.c(3KB)
--------cond.c(2KB)
--------green.h(696B)
--------utility.c(304B)
--------cond.h(504B)
--------globals.c(219B)
--------globals.h(286B)
----.gitignore(448B)
----CMakeLists.txt(278B)
----README.md(691B)

网友评论