静态调度编程 [英] static scheduling programming

查看:60
本文介绍了静态调度编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Decoding video C程序,想要将其拆分为4个独立的块,并希望每个块在不同的CPU CORE(具有4个内核)上运行线程.
我在将每个线程分配给我选择的相应CPU时遇到麻烦
我已经找到< sched.h>库包含fct sched_getcpu()返回正在运行的cpu编号,但我不知道我想要的fct
任何人都可以帮忙吗?
我只需要知道可以帮助我的功能
谢谢

I have a Decoding video C program and want to split it into 4 independent blocks and want each block to run thread on different CPU CORE (have 4 cores)
I am facing troubles in allocating each thread to its corresponding CPU that i chose
i have found library <sched.h> that contains fct sched_getcpu() that returns the cpu numbers that is running but i cannot know my desirable fct
any one could help??
i just need to know the fct that could help me
thanks

推荐答案

我可以建议您阅读有关
May I suggest you read about OpenMP[^].


这篇关于静态调度编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆