Skip to content

farkoo/User-Level-Thread-Library

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

User-Level-Thread-Library

Simple thread library using c with this library you must include "green.h" in your program. then you can use this functions:

  • int green_create(green_t * thread , void *(*fun)(void *),void * arg);
  • int green_yield();
  • int green_join(green_t * thread, void ** val);

project has two phazes. in green_phaze1 there are no timer interrupt and context switch accur only by users with green_yield() function but in green_phaze2 timer intrrupt raise every 1000 usec
This project was done as a team by me and @ReyhaneAbtahi.

Requirement

  • gcc compiler
  • linux operating system

Usage

  • make
  • ./green_test to execute green_test.c code

Support:

Contact me @:

e-mail:

telegram id:

License

MIT © Farzaneh Koohetani

Releases

No releases published

Packages

No packages published

Languages

  • C 95.3%
  • Makefile 4.7%