Welcome, Guest. Please login or register.

Author Topic: WarpOS and tasks  (Read 1317 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline CassTopic starter

  • Hero Member
  • *****
  • Join Date: Apr 2003
  • Posts: 826
  • Country: 00
    • Show only replies by Cass
WarpOS and tasks
« on: January 25, 2004, 12:51:17 AM »
I've noticed that when in heavy load, the PPC kernel is blocked onto one task, leaving the rest waiting.

If such a thing happens on the 68K side, all I have to do is to start executive, and the task is forced to switch to the next one by the scheduler.

Is there any such thing in mind for WarpOS or for OS4, so there will be no stalls any more?
________
TOYS MOVIES
« Last Edit: March 18, 2011, 10:04:26 PM by Cass »
"If we don't got it, you don't want it!"
 

Offline KennyR

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 8081
    • Show only replies by KennyR
    • http://wrongpla.net
Re: WarpOS and tasks
« Reply #1 on: January 25, 2004, 05:16:43 AM »
WarpOS already has a task scheduler like Executive's built in. The reason you're getting blocking is not multitasking, its hardware context switches.
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Re: WarpOS and tasks
« Reply #2 on: January 25, 2004, 12:06:48 PM »
Unless you are some truly dreadful code, the old hardware context switch shoudldnt be noticable at all - it takes half a millisecond or so per switch (hence a millisecond overall).

It certianly doesn't impact on my system at all (at least as far as I can test), and thats the 040 version of the card. The 060 version is considerably faster apparently.

I have written some test code that thrashes the warpos kernel by doing a massive number of switches in a tight loop. Now that did bugger things up a tad, but any code like that is indicative of an extremely poor/vindictave coder ;-)
int p; // A
 

Offline Acill

Re: WarpOS and tasks
« Reply #3 on: January 25, 2004, 02:49:31 PM »
Where can I get some 060 replacement libs and data types? I want as mush of my system to run from the PPC as I can. I am in the process of "discovering" my PPC card. I never had a working one before since my other one was sent to DCE just after I got it due to a PPC problem.
Proud Retired Navy Chief!

A4000T - CSPPC - Mediator
Powerbook G4 15", 17"
Powermac G5 2GHZ
AmigaOne X5000
Need Amiga recap or other services in the US? Visit my website at http://www.acill.com and take a look or on facebook at http://facebook.com/acillclassics
 

Offline CassTopic starter

  • Hero Member
  • *****
  • Join Date: Apr 2003
  • Posts: 826
  • Country: 00
    • Show only replies by Cass
Re: WarpOS and tasks
« Reply #4 on: January 25, 2004, 04:37:46 PM »
The hardware contex switches always exist, the point is that the task seems to hold the PPC multitasking.

Sure there must be some kind of multitasking kernel on the WarpOS, as in the 68K exec, but nothing is perfect. As I said before, on the 68K side if such a thing happens (rarely, the exec is almost perfect :-D ), all I have to do is to run executive and the problem is solved : the stalled system is forced to respond, even if there are HEAVY tasks running on the background.

Are there any system monitors that show the priorities, and the PPC tasks? :-? Idle has access to the PPC side, but I'd prefer something like the old XOper or Scout or SysInspector, for the PPC.
________
C70
« Last Edit: March 18, 2011, 10:05:00 PM by Cass »
"If we don't got it, you don't want it!"