完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,在一个较旧的项目中,我们使用了一个包含函数SetPriorityClass的DLL。这个DLL适用于NT。
在测量开始之前将VEE设置为“实时”并且在测量之后将其设置回“正常”是没有问题的。 但是别忘了把它放回去。 最好的问候M. Bernhardt ----- Ursprngliche Nachricht ----- Von:Shawn Fessenden [mailto:shawn@testech-ltd.com] Gesendet:Mittwoch,3。Dezember 2003 10:32An:VRFBetreff:[vrf] AW:RE:CPU 用法(是:Vee程序源)>愚蠢的物理学家我想,更好:希望 - 可能有一种方法来欺骗任何线程句柄或f * ... OS内的任何东西>禁用图形引擎 在执行明确定义的>代码时,在短时间内或声称> VEE的完整系统资源。但是,作为一名物理学家,你已经完全击中了头部,并且完全正确地确定了正确的解决方案。 有两个这样的functionsin KERNEL32:?INT __stdcall SetPriorityClass(INT hProcess,长dwPriorityClass); REALTIME_PRIORITY_CLASS = 0x00000100HIGH_PRIORITY_CLASS = 0x00000080ABOVE_NORMAL_PRIORITY_CLASS = NORMAL_PRIORITY_CLASS = 0x00000020BELOW_NORMAL_PRIORITY_CLASS = IDLE_PRIORITY_CLASS = 0x00000040In NT,手柄必须PROCESS_SET_INFORMATION访问(当usingOpenProcess得到处理,指定 至少PROCESS_SET_INFORMATIONaccess).INT __stdcall SetThreadPriority函数(INT hThread,诠释iPriority); THREAD_PRIORITY_TIME_CRITICAL = 15THREAD_PRIORITY_HIGHEST = 2THREAD_PRIORITY_ABOVE_NORMAL = 1THREAD_PRIORITY_NORMAL = 0THREAD_PRIORITY_BELOW_NORMAL = -1THREAD_PRIORITY_LOWEST = -2THREAD_PRIORITY_IDLE = -15In NT,手柄必须THREAD_SET_INFORMATION访问(当usingOpenThread得到处理, 至少指定THREAD_SET_INFORMATIONaccess)。除了这些函数的文档,我不太了解它。 至少可以说,任务调度程序是极端奇怪的。 我确实从个人经验中知道你应该在任何一个电话中使用REALTIME三思而后行。 一旦这些计算机生效,它可能需要很长时间才能完成所有其他操作。 那只是一个40MHz的处理器。-SHAWN ----您目前订阅了vrf:Bernhardt@somatec.de订阅时发送一封空白电子邮件至“join-vrf@it.lists.it.agilent.com”.To 取消订阅会发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。要向此邮件列表发送邮件,请发送电子邮件至“vrf@agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”.---您目前订阅vrf为:r***@soco.agilent.com要订阅发送空白 发送电子邮件至“join-vrf@it.lists.it.agilent.com”。要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。要向此邮件列表发送邮件,请发送电子邮件至 “vrf@agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 以上来自于谷歌翻译 以下为原文 Hi, in an older project we used a DLL containing the function SetPriorityClass. This DLL works fine with NT. It was no problem to set VEE to "Realtime" before the measurement starts and set it back to "Normal" after the measurement. But don't forget to set it back. Best regards M. Bernhardt -----Ursprngliche Nachricht----- Von: Shawn Fessenden [mailto:shawn@testech-ltd.com] Gesendet: Mittwoch, 3. Dezember 2003 10:32 An: VRF Betreff: [vrf] AW: RE: CPU Usage (was: Vee program sources) > Stupid physicist I am, thought - better: hoped - that there might be a > way to cheat any thread-handle or whatever is inside the f*... OS to > disable the graphical engine for a short period of time or to claim > full system resources for VEE while executing a well-defined piece of > code. Ahh, but being a physicist you have hit the nail exactly on the head and somehow divined exactly the correct solution. There are two such functions in kernel32: int __stdcall SetPriorityClass(int hProcess, long dwPriorityClass); REALTIME_PRIORITY_CLASS = 0x00000100 HIGH_PRIORITY_CLASS = 0x00000080 ABOVE_NORMAL_PRIORITY_CLASS = ? NORMAL_PRIORITY_CLASS = 0x00000020 BELOW_NORMAL_PRIORITY_CLASS = ? IDLE_PRIORITY_CLASS = 0x00000040 In NT, the handle must have PROCESS_SET_INFORMATION access (when using OpenProcess to get the handle, specify at least PROCESS_SET_INFORMATION access). int __stdcall SetThreadPriority(int hThread, int iPriority); THREAD_PRIORITY_TIME_CRITICAL = 15 THREAD_PRIORITY_HIGHEST = 2 THREAD_PRIORITY_ABOVE_NORMAL = 1 THREAD_PRIORITY_NORMAL = 0 THREAD_PRIORITY_BELOW_NORMAL = -1 THREAD_PRIORITY_LOWEST = -2 THREAD_PRIORITY_IDLE = -15 In NT, the handle must have THREAD_SET_INFORMATION access (when using OpenThread to get the handle, specify at least THREAD_SET_INFORMATION access). Beyond the documentation of these functions, I don't know much about it. The task scheduler is bizarre in the extreme to say the very least. I do know from personal experience though that you should really think twice about using REALTIME in either call. It can take a LONG time to do anything else at all with the computer once these are in effect. That was on a mere 40MHz processor though. -SHAWN- --- You are currently subscribed to vrf as: Bernhardt@somatec.de To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". --- You are currently subscribed to vrf as: r***@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". |
|
相关推荐
2个回答
|
|
>愚蠢的物理学家,我想,更好:希望 - 可能有一种方法来欺骗任何线程句柄或f * ... OS内的任何东西>在短时间内禁用图形引擎或者
声称> VEE的完整系统资源,同时执行一个明确定义的>代码片段。但是,作为一名物理学家,你已经完全击中了头部并且正确地分配了正确的解决方案。 有两个这样的functionsin KERNEL32:?INT __stdcall SetPriorityClass(INT hProcess,长dwPriorityClass); REALTIME_PRIORITY_CLASS = 0x00000100HIGH_PRIORITY_CLASS = 0x00000080ABOVE_NORMAL_PRIORITY_CLASS = NORMAL_PRIORITY_CLASS = 0x00000020BELOW_NORMAL_PRIORITY_CLASS = IDLE_PRIORITY_CLASS = 0x00000040In NT,手柄必须PROCESS_SET_INFORMATION访问(当usingOpenProcess得到处理,指定 至少PROCESS_SET_INFORMATIONaccess).INT __stdcall SetThreadPriority函数(INT hThread,诠释iPriority); THREAD_PRIORITY_TIME_CRITICAL = 15THREAD_PRIORITY_HIGHEST = 2THREAD_PRIORITY_ABOVE_NORMAL = 1THREAD_PRIORITY_NORMAL = 0THREAD_PRIORITY_BELOW_NORMAL = -1THREAD_PRIORITY_LOWEST = -2THREAD_PRIORITY_IDLE = -15In NT,手柄必须THREAD_SET_INFORMATION访问(当usingOpenThread得到处理, 至少指定THREAD_SET_INFORMATIONaccess)。除了这些函数的文档,我不太了解它。 至少可以说,任务调度程序是极端奇怪的。 我确实从个人经验中知道你应该在任何一个电话中使用REALTIME三思而后行。 一旦这些计算机生效,它可能需要很长时间才能完成所有其他操作。 那只是一个40MHz的处理器。-SHAWN ----您目前订阅vrf为:r***@soco.agilent.com要订阅,请发送一封空白电子邮件至“join-vrf@it.lists.it.agilent.com” 。要取消订阅,请发送空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。要向此邮件列表发送邮件,请发送电子邮件至“vrf@agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 以上来自于谷歌翻译 以下为原文 > Stupid physicist I am, thought - better: hoped - that there might be a > way to cheat any thread-handle or whatever is inside the f*... OS to > disable the graphical engine for a short period of time or to claim > full system resources for VEE while executing a well-defined piece of > code. Ahh, but being a physicist you have hit the nail exactly on the head and somehow divined exactly the correct solution. There are two such functions in kernel32: int __stdcall SetPriorityClass(int hProcess, long dwPriorityClass); REALTIME_PRIORITY_CLASS = 0x00000100 HIGH_PRIORITY_CLASS = 0x00000080 ABOVE_NORMAL_PRIORITY_CLASS = ? NORMAL_PRIORITY_CLASS = 0x00000020 BELOW_NORMAL_PRIORITY_CLASS = ? IDLE_PRIORITY_CLASS = 0x00000040 In NT, the handle must have PROCESS_SET_INFORMATION access (when using OpenProcess to get the handle, specify at least PROCESS_SET_INFORMATION access). int __stdcall SetThreadPriority(int hThread, int iPriority); THREAD_PRIORITY_TIME_CRITICAL = 15 THREAD_PRIORITY_HIGHEST = 2 THREAD_PRIORITY_ABOVE_NORMAL = 1 THREAD_PRIORITY_NORMAL = 0 THREAD_PRIORITY_BELOW_NORMAL = -1 THREAD_PRIORITY_LOWEST = -2 THREAD_PRIORITY_IDLE = -15 In NT, the handle must have THREAD_SET_INFORMATION access (when using OpenThread to get the handle, specify at least THREAD_SET_INFORMATION access). Beyond the documentation of these functions, I don't know much about it. The task scheduler is bizarre in the extreme to say the very least. I do know from personal experience though that you should really think twice about using REALTIME in either call. It can take a LONG time to do anything else at all with the computer once these are in effect. That was on a mere 40MHz processor though. -SHAWN- --- You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email] To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". |
|
|
|
大家好,我如何表示0到4294967295(2 ^ 32 - 1)范围内的整数?我正在计算来自虚线IP地址的IP号。
将A.B.C.D形式的IP地址转换为IP号的公式为:IP Number = A x 16777216 + B x 65536 + C x 256 + DWhen我使用公式框,它返回错误514(溢出)。 我如何表明在UInt32或Real中给出结果?感谢和问候,Nelson Mambre Ingeniero de DesarrolloSeebeck C.A.Caracas,VenezuelaTel。 + 58-212-906-4276Fax + 58-212-962-0871www.seebeck.com.ve ---您目前订阅了vrf:r***@soco.agilent.com要订阅,请发送空白电子邮件至“join-vrf @ it.lists.it.agilent.com“。要取消订阅,请发送一封空白电子邮件至”leave-vrf@it.lists.it.agilent.com“。要发送邮件至此邮件列表,请发送电子邮件至”vrf@agilent.com ”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 以上来自于谷歌翻译 以下为原文 Hi all, How do I represent an integer in the range of 0 to 4294967295 (2^32 - 1)?I'm calculating IP numbers from dotted IP address. The formula to convert an IP Address of the form A.B.C.D to an IP Number is: IP Number = A x 16777216 + B x 65536 + C x 256 + DWhen I use a formula box, it returns error 514 (overflow). How can I indicate to give the result in UInt32 or Real? Thanks and regards, Nelson Mambre Ingeniero de DesarrolloSeebeck C.A.Caracas, VenezuelaTel. +58-212-906-4276Fax +58-212-962-0871www.seebeck.com.ve---You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email]To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". |
|
|
|
只有小组成员才能发言,加入小组>>
1182 浏览 0 评论
2331 浏览 1 评论
2128 浏览 1 评论
2000 浏览 5 评论
2876 浏览 3 评论
912浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
677浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
774浏览 0评论
1182浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-4 10:08 , Processed in 1.346002 second(s), Total 80, Slave 63 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号