A question about a script's priority of execution

4 posts / 0 new
Last post
OldFart
OldFart's picture
Offline
Last seen: 42 min 46 sec ago
Joined: 2010-11-30 14:09
A question about a script's priority of execution

Hi,

For a project I'm working on, I would like to know how to obtain a script's priority of execution. I went through struct DiskObject, but found nothing there, that even remotely triggered a hint of recognition.

Can anyone please enlighten me?

OldFart

OldFart
OldFart's picture
Offline
Last seen: 42 min 46 sec ago
Joined: 2010-11-30 14:09
Re: A question about a script's priority of execution

Think before you ask! Its stored in a ToolType: TOOLPRI=. Should have known, could have known and with handsight I DID know, but forgot I did so.

OldFart

hypex
hypex's picture
Offline
Last seen: 1 month 2 weeks ago
Joined: 2011-09-09 16:20
Re: A question about a script's priority of execution

Hang on, that's for tools, not for scripts exactly, so your question remains unanswered. Check here:
https://wiki.amigaos.net/wiki/Icon_Library#The_Tool_Types_Array

Though, if it is set and C:IconX is used it should set priority of IconX. But, a shell will be running, from where the commmands are executed. So it's not so clear cut as the command shell may run the commands in a different priority. I don't know if a concept of running pri can be applied to a script this way. It's a good question.

There is ChangeTaskPri command to change the pri of a process from a script. Status can query the pri of running comnmand or process but the output must be parsed from a string.

OldFart
OldFart's picture
Offline
Last seen: 42 min 46 sec ago
Joined: 2010-11-30 14:09
Re: A question about a script's priority of execution

@Hypex

The 'Problem' has been solved already, but thanks anyway for your informative answer!

OldFart

Log in or register to post comments