2005年06月17日 星期五 22:08
实时系统,还是纯C吧 在05-6-17,吴华平 <stevecrise at 163.com> 写道: > > 我的C程序调用python写的脚本,这是可行的。 > 假设我写的C程序为主程序A,python写的脚本程序有A1,A2,A3.....An。 > A程序功能是提供时间计数(中断机制),脚本程序去访问该时间。 > 那么,能实现如下调用吗? > > A同时调用n个脚本程序 > 脚本程序能够并发的执行 > A程序能够事件驱动脚本程序的状态跃迁 > 脚本程序能够调用A程序中的函数(阻塞调用) > > 时间精度要求要很高,用中断实现时间计数,c里面得int21中断,基本上10毫秒中断一次 > 请问,python能够实现我说的这些要求吗? > > moonight > stevecrise at 163.com > 2005-06-17 > > _______________________________________________ > python-chinese list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese > -- My Blog >> http://leejd.cndev.org My QQ >> 9847243 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20050617/6d5b282e/attachment.html
2005年06月18日 星期六 09:07
Gerald Lee,您好!
但是,纯C不能解决脚本的问题啊,流程是变化的,不能老实改程序啊。
又没有好的解决办法 。
======== 2005-06-17 22:08:00 您在来信中写道: ========
实时系统,还是纯C吧
在05-6-17,吴华平 <stevecrise at 163.com> 写道:
我的C程序调用python写的脚本,这是可行的。
假设我写的C程序为主程序A,python写的脚本程序有A1,A2,A3.....An。
A程序功能是提供时间计数(中断机制),脚本程序去访问该时间。
那么,能实现如下调用吗?
A同时调用n个脚本程序
脚本程序能够并发的执行
A程序能够事件驱动脚本程序的状态跃迁
脚本程序能够调用A程序中的函数(阻塞调用)
时间精度要求要很高,用中断实现时间计数,c里面得int21中断,基本上10毫秒中断一次
请问,python能够实现我说的这些要求吗?
moonight
stevecrise at 163.com
2005-06-17
_______________________________________________
python-chinese list
python-chinese at lists.python.cn
http://python.cn/mailman/listinfo/python-chinese
--
My Blog >> http://leejd.cndev.org
My QQ >> 9847243
= = = = = = = = = = = = = = = = = = = = = =
致
礼!
吴华平
stevecrise at 163.com
2005-06-18
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20050618/2d622041/attachment.htm
Zeuux © 2025
京ICP备05028076号