Skip to content

Ansen88/ump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ump

workqueue in user space

description

Based on multi-thread in user space. You can put your function into ump, so the function is running parallelly. Thus, you can take advantage of multi-core CPUs.

performance

  1. without ump

The result of test is "delay is 47921"

  1. with ump

The result of test is "delay is 9799"

  1. result

The performance is improved by 389%

build

for so

gcc -fpic -shared -o libump.so ump.c

for test

gcc main.c -L. -lump -lpthread

run test

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD

without ump

./a.out

with ump

./a.out 1

About

workqueue in user space

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages