免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2519 | 回复: 4
打印 上一主题 下一主题

passthru 我对你真的很失望  关闭 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-11-30 00:03 |只看该作者 |倒序浏览
看了IBM网站上的最新消息:
http://publib.boulder.ibm.com/in ... .doc/c092507635.htm

你是怎么启动新线程的呢?能不用JAVA, C++ API, 真是太有才了。IBM不请你去当研发部总裁真是亏待了你!

干了20年还搞不清楚thread safe和multithread的差别,你咋那么不长进呢?

我发誓不再理会你这个概念不清的家伙了!

Multithreaded Applications
The iSeries system now supports multithreading. ILE RPG does not directly support initiating or managing program threads. However, ILE RPG procedures can run as threads in multithreaded environments. If you want to call an ILE RPG procedure in a multithreaded application, you must ensure that the ILE RPG procedure is threadsafe. You must also ensure that any system functions that your procedure accesses are also threadsafe.

The THREAD(*SERIALIZE) control specification keyword can be specified to help you achieve thread safety for an ILE RPG module. Specifying THREAD(*SERIALIZE) will protect most of your variables and all your internal control structures from being accessed improperly by multiple threads. The thread safe module will be locked when a procedure in the module is entered and unlocked when when no procedure in the module is still running. This serialized access, ensures that only one thread is active in any one module, within an activation group, at any one time. However, it is still up to the programmer to handle thread safety for storage that is shared across modules. This is done by adding logic in the application to synchronize access to the storage.

For more information, see Multithreading Considerations.

(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.

[ 本帖最后由 franliu 于 2009-11-30 09:09 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2009-11-30 01:57 |只看该作者
说你不懂就不要装懂,死懒者脸干啥。指点你一下,还这么傻逼。真不可理喻。对你这号人,都懒得再理你了!

论坛徽章:
0
3 [报告]
发表于 2009-11-30 02:00 |只看该作者
原帖由 franliu 于 2009-11-30 00:03 发表
看了IBM网站上的最新消息:
http://publib.boulder.ibm.com/in ... .doc/c092507635.htm

你是怎么启动新线程的呢?能不用JAVA, C++ API,  ...

又不懂,又不肯学,到处找你的理论基础,这就是你的学习方法?

论坛徽章:
0
4 [报告]
发表于 2009-11-30 03:08 |只看该作者
原帖由 franliu 于 2009-11-30 00:03 发表
看了IBM网站上的最新消息:
http://publib.boulder.ibm.com/in ... .doc/c092507635.htm

你是怎么启动新线程的呢?能不用JAVA, C++ API,  ...

你引用的ibm这篇文章非常清楚的说明,在400环境下可以用rpgle实现多线程处理。我不关心这个job是如何被触发。我只关心这个job后的rpgle程序是如何实现多线程处理。

对你我懒得再多费口舌,因为就你这种态度,不可理喻。

对其他关心多线程处理的朋友,借此机会,我在说明一下,400下,实现rpgle多线程处理的两个要素:
1)procedures,包括subprocedures生成的modules是可多线程处理的;
2)一个子系统中存在可以同优先级并发提交的jobq。

modules多线程处理可以是并发的,也可以是流处理。做金融应用系统,最好采用流处理modules,即每个module只允许一个线程处理。

论坛徽章:
0
5 [报告]
发表于 2009-11-30 09:26 |只看该作者
论坛的宗旨是大家一起讨论,一起提高.而不是互相攻击.
我一直很敬重老前辈,希望给年轻一辈带个好头,营造一个和谐的论坛环境!

先LOCK这个帖子,再搞来搞去,就要"和谐"CU ID号了.

拜托了,谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP