在RPG中使用激活组的真正优点是什么
有人可以告诉我使用激活组的真正优势是什么。我的意思是,除了我们可以将一堆程序停用的事实之外,实际优势激活组为我们提供了不使用它的实际优势。
Can someone kindly tell me what is the real advantage of using an activation group. I mean other than the fact that we can deactivate a bunch of programs together what real advantage does activation group provide us over not using it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
另一个现实生活中的例子,来自其他POV:我是一个爱好者的使用者,并故意使用并在一个较旧的速度系统上使用和开发。
最近,我构建了一个小型ILE RPG应用程序,该应用程序仅显示一个静态字符串的屏幕,您可以放置光标并按照帮助,以获取一个格式良好的帮助文本面板。
我发现
dftactgrp(*yes)
在编译时(而不是我的默认dftactgrp(*no)actgrp(*new)
)在启动该程序时会差异。以旧样式共享激活组运行可节省CPU周期。就像您在已经存在的命名激活组中运行时所观察到的一样。Another real life example, from a different PoV: I'm a Hobbyist user and deliberately using and developing on a rather old and slow system.
Lately I've built a tiny ILE RPG application which just displays a screen of static strings you can put your cursor on and press help to get a nicely formatted help text panel.
I found
DFTACTGRP(*YES)
when compiling (instead of my defaultDFTACTGRP(*NO) ACTGRP(*NEW)
) makes a seizable difference when starting that program. Running in the old style shared activation group saves CPU cycles. The same like you would observe when running in an already existing named activation group.在进行ILE激活组之前,每个程序都在给定的作业中共享某些资源,而激活组仅在激活组中共享。
我将您指向 ile概念手册
但是您要求的好处是什么。很简单,实际上,当使用各种供应商的应用程序和/或工具时,激活组提供了它们之间的隔离。
让我提供一个“现实生活”的示例,以保存一天的激活组。我正在构建一个使用Scott Klement的令人敬畏的HTTP API工具的应用程序。根据最佳实践, *SRVPGM用ActGRP( *呼叫者)定义。我的用例PGMA需要保持与给定端点的持续连接。但是,定期,我还需要调用PGMB,该PGMB还使用HTTP API击中了另一个端点。 HTTP API并非旨在同时支持多个连接。但是,通过简单地运行PGMA和PGMB是单独的激活组,我可以获得HTTP API *SRVPGM激活的多个副本,并成功地连接到多个端点。
Prior to ILE Activation groups, every program ran in a given job shared certain resources, with activation groups these are shared only within an activation group.
I'll point you toward the ILE Concepts manual
But what's the benefit you asked. Simple really, when working with applications and/or tools from various vendors, activation groups provide for segregation between them.
Let me provide a "real-life" example of activations groups saving the day. I was building a application that used Scott Klement's awesome HTTP API tooling. As is best practice, the *SRVPGM was defined with ACTGRP(*CALLER). My use case, PGMA, required maintaining a persistent connection to a given end point. However, periodically, I also needed to call PGMB which also used HTTP API to hit another endpoint. HTTP API isn't designed to support multiple connections at the same time. However, by simply running PGMA and PGMB is separate activation groups, I could get multiple copies of the HTTP API *SRVPGM activated and successfully connect to multiple endpoints at the same time.