Aqua-Soft Forums: Multiple instances to allow for different process priorities? - Aqua-Soft Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Multiple instances to allow for different process priorities? Rate Topic: -----

#1 User is offline   lid Icon

  • Group: Member
  • Posts: 365
  • Joined: 31-July 03

Posted 20 April 2006 - 04:23 AM

Just wondering if it was possible to have multiple instances of Avedesk instead of just the one? The reason I ask is currently I run avedesk at below normal priority so it doesn't take cpu cycles from other programs. Problem is I'm using the OSX volume indicator (AveScripter) and would like that desklet to be normal priorty if possible.
0

#2 User is offline   SirSmiley Icon

  • Douchebag
  • Group: Member
  • Posts: 1,885
  • Joined: 28-June 05

Posted 20 April 2006 - 05:36 AM

Just ran two myself to see. Without a problem. Interestingly, whether intended or not the second version came in substantially lower in resouces even though it was identical?

The only conflict I could see is when you boot up and/or shut down. You probably would want a delay on the second (subsequent) version?
0

#3 User is offline   herd Icon

  • Group: Developers
  • Posts: 999
  • Joined: 02-November 03

Posted 20 April 2006 - 07:24 AM

That's a good idea.
Since AveDesk runs each desklet in its own thread, we should add the possibility to adjust the thread priority for each desklet separately. Then you could run a single instance, set all desklets except volume to below normal.
Also, with all this dual cores and hyperthreaders around, we should provide a setting to assign a desklet to a CPU...
Thinking even further, most users still run as admins. The user should be able to restrict a desklet to a lower account (for safeguarding malicious scripts).
0

#4 User is offline   lid Icon

  • Group: Member
  • Posts: 365
  • Joined: 31-July 03

Posted 20 April 2006 - 07:43 AM

herd said:

That's a good idea.
Since AveDesk runs each desklet in its own thread, we should add the possibility to adjust the thread priority for each desklet separately. Then you could run a single instance, set all desklets except volume to below normal.
Also, with all this dual cores and hyperthreaders around, we should provide a setting to assign a desklet to a CPU...
Thinking even further, most users still run as admins. The user should be able to restrict a desklet to a lower account (for safeguarding malicious scripts).


That level of customisation out of the box would be great. SirSmiley I simply didn't try duplicating the directory and running a second program. Works great thanks for the suggestion. Got it running nicely now with 2 Avedesk.exe running how I would like (being sure not to overwrite the currenttheme default save location for my primary instance to within the avedesk directory. Presumably memory usage is higher this way than being able to adjust priorities for each desklet within one instance but it seems fine to me. Who would have thought it would be so simple, silly me..:P
0

#5 User is offline   pcm Icon

  • Group: Member
  • Posts: 617
  • Joined: 02-May 05

Posted 20 April 2006 - 01:33 PM

Hmmm.. I'll look into the possiblity for avescripter set his priority. Top priority, I like this idea alot. Also will look into the "security" issue. As is.. Scripter could be very "dangerous".

Running 2 version of avedesk is just uses more memory.
0

#6 User is offline   SirSmiley Icon

  • Douchebag
  • Group: Member
  • Posts: 1,885
  • Joined: 28-June 05

Posted 20 April 2006 - 04:58 PM

pcm said:

....As is.. Scripter could be very "dangerous".


Thanks for the heads up. I guess a temp work-a-round would simply be (depending on needs) to maybe create a second AveDesk Directory absent the scripter. Obviously this depends on a person's needs/wants.

pcm said:

Running 2 version of avedesk is just uses more memory.


Amazingly enough it still beats Y!Gadgets (only 4 widgets open =70mb for me). ;)
0

#7 User is offline   pcm Icon

  • Group: Member
  • Posts: 617
  • Joined: 02-May 05

Posted 20 April 2006 - 05:03 PM

70 megs? Thats VM size or Mem size? And thats for avedesk?

Well.. if there is enough intereset, I could do a "volume" app completely seperate. EXE.
0

#8 User is offline   AndreasV Icon

  • Group: Developers
  • Posts: 2,137
  • Joined: 22-November 03

Posted 20 April 2006 - 08:09 PM

I was planning to include a "desklet to EXE" thing for avedesk2. I might talk to pcm to give it a go on this one.
0

#9 User is offline   pcm Icon

  • Group: Member
  • Posts: 617
  • Joined: 02-May 05

Posted 20 April 2006 - 08:41 PM

That would be cool.

But I'll look into making a seperate exe if I get "enough" requests. That would avoid loading extra stuff that aren't really needed. Like the scripting engine.

Could have it really lite version.
0

#10 User is offline   SirSmiley Icon

  • Douchebag
  • Group: Member
  • Posts: 1,885
  • Joined: 28-June 05

Posted 20 April 2006 - 10:29 PM

Of course not for AveDesk that's for gadgets & regular memory.

The most I've ever seen AveDesk (under normal use) at was around 40mb memory when working on a sidebar style desklet/config...umm for obvious reasons.

Always thought the exe was a good idea.
0

#11 User is offline   pcm Icon

  • Group: Member
  • Posts: 617
  • Joined: 02-May 05

Posted 23 April 2006 - 10:56 PM

Good news, next version of avescripter will have an option to set the process/thread priority for each avescripter desklet. :)
0

#12 User is offline   Zxian Icon

  • Group: Member
  • Posts: 119
  • Joined: 01-November 04

Posted 24 April 2006 - 05:55 PM

Sweet... Man - you're really on the ball pcm! :D
0

#13 User is offline   pcm Icon

  • Group: Member
  • Posts: 617
  • Joined: 02-May 05

Posted 02 May 2006 - 01:02 PM

Latest beta version 1.0.5.7 now has thread priority you can set for each avescripter skin. Right click and look in the properties.
0

#14 User is offline   SirSmiley Icon

  • Douchebag
  • Group: Member
  • Posts: 1,885
  • Joined: 28-June 05

Posted 02 May 2006 - 03:34 PM

Thanks. :)

PS. Shouldn't you be working on your new house by now. :P ;)
0

#15 User is offline   pcm Icon

  • Group: Member
  • Posts: 617
  • Joined: 02-May 05

Posted 02 May 2006 - 05:09 PM

May 15 is the new house day. So I got a few more days to go :)
0

#16 User is offline   Zxian Icon

  • Group: Member
  • Posts: 119
  • Joined: 01-November 04

Posted 03 May 2006 - 02:47 AM

Wow! Thanks for this pcm! This is awesome. Now my volume meter can take priority over my 7-zip compressing... (god I'm such a nerd :P).

pcm = :cool:
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic