并行编程:需要帮助! [英] parallel programming : NEED HELP !

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

问题描述

伙计们,我真的是个大问题,由于该站点上的专家数量众多,您是我的最后机会.
我是计算机专业的学生,​​今年我将完成学业.作为项目,我使用C语言开发了一个程序,该程序允许计算并行程序的执行时间",我的第一个(也是我的大问题)是我不知道从哪里开始,第二,我不知道是否必须找到解决方案的类型,我澄清:我对并行编程有很好的了解,但是对这种时间估计"却不了解,因为我不知道解决方案将是一个数学公式或就像总是时间=计算时间+交流时间),第三次不幸的是,我发现可以帮助我的资源并非全都是免费的(哦,是的,另一个可怜的男孩,我不以为耻,因为我打算这样做)将来成为好人,这对我很重要)而自由者的信息非常匮乏.因此,请各位先生们能帮助我,我将永远感激不尽(我要求提供论坛,站点,文档,书籍,代码,解释,类似的项目……但请大家记住,它必须是免费的,因为我的学习经历了我每一分钱)非常感谢预先匹配.
我的电子邮件:ka_3@hotmail.fr
PS:如果有拼写或语法错误,请原谅.主要是我说法语,英语是我的第二个.抱歉,阅读我的文章时遇到问题的每个人^^

Hi, guys I’m really in big problem and you are my last chance due to the important number of expert in the site.
I am a student in computing and this year I am finishing my studies. I had, as project , developing a program ,using C language, that permits the " Calculation of time of execution of parallel programs ",My first(and my big one) problem is that i don''t know where to Begin, My second is that i have no idea about the type if solution that i have to find out, i clarify : I have good knowledge in parallel programming but not this "time estimation" because i do not know is the solution going to be a mathematical formula or just like always time=time of calculation+time of communication) and third Ununfortunately I found that the resources that can help me they are all not free (oh yes another poor boy and I am not ashamed of telling it beacause I am planning to be a good man in future this is what count for me )and the free ones are very poor in information. So please can anyone of you gentleman help me i will be forever grateful (I’m asking for forums, sites,documents,books, codes,explanations, a similar projects... but please guys remember it must be free besause my studies took me every cent) Thanks very match in advance.
My Email: ka_3@hotmail.fr
PS: excuse me if there are spellings or grammar mistakes,Mainly i speak French and English is my second one. Sorry for everyone who met problems while reading my article ^^

推荐答案

通常,要研究算法的性能,您应该首先实现算法,而不是实现函数那

-查询计时器
-调用算法,为其提供所需的测试数据
-再次查询计时器

两个查询的值之间的差是经过的时间.
关于计时器,您可以在此处资助一些有用的文章
http://www.codeproject.com/info/search.aspx?artkw=high+ resolution + timer [^ ]
或通过Google"Windows高分辨率计时器".
In general, to study the performance of an algorithm you should fist implement the algorithm and than implement a function that

- queries a timer
- call the algorithm giving it the required testing data
- queries the timer (again)

The difference between the values of the two queries is the elapsed.
About timers, you can fund some useful articles here
http://www.codeproject.com/info/search.aspx?artkw=high+resolution+timer[^]
or by google "windows high resolution timer".


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

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