home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 4
/
DATAFILE_PDCD4.iso
/
utilities
/
utilsd
/
et_demo
/
!ET_Demo
/
!Help
next >
Wrap
Text File
|
1995-07-26
|
12KB
|
269 lines
EmptyTasks v 1.00 (Requires RISC-OS 3.xx)
Registering: see the section entitled "Registering" at the bottom of this
file.
-=-=-=-=-= Description: (What does it do?) =-=-=-=-=-
EmptyTasks allows you to temporarily put the memory of an application on
disc (called swapping out of a task). The memory it occupied becomes
available for other use now.
As the word “temporarily” in the previous sentence already indicated you
can swap a swapped out task back in and continue using it, if of course you
have enough free memory to swap the task back in again.
-=-=-=-=-= Usage (How to use it) =-=-=-=-=-
After having run EmptyTasks, the EmptyTasks icon will appear on the
iconbar. Clicking on it with select will openup a Tasklist window displaying
all application tasks currently running. Alongside each task the amount of
discspace and memory it occupies (in Kilobytes) are also displayed.
Clicking with select or adjust on one of the tasknames displayed will swap
that task out: all windows belonging to this task are temporarily closed and
all its iconbar icons are temporarily replaced by “DeadTask”-icons,
underneath which the first 5 characters of the taskname are displayed, the
contents of the taskmemory are written to disc and the memory is freed.
(In the Tasklist window, swapped out tasks will have their name and
information printed in red instead of black.)
To swap a task back in, click on its name in the Tasklist window again or
on one of its “DeadTask” icons on the iconbar.
-=-=-=-=-= Installing EmptyTasks on your harddisc =-=-=-=-=-
Just copy the !ET_demo directory to your harddisc. You can either run
EmptyTasks when you need it or put it in your boot sequence.
If you decide to put it in your boot sequence just copy !ET_demo to your
AfterDesk directory if you have a RiscPC. Run it from your desktop boot file
if you have a non RiscPC.
-=-=-=-=-= Copyright =-=-=-=-=-
You may make as many copies of !ET_demo as you want, as long as all files
within the !ET_demo are copied without any modifications. And it may be
distributed freely.
Remeber however that although this demo version of EmptyTasks can only
handle one swapped out task at a time that you should buy the full version if
you want to use EmptyTasks (on a regular basis), even if one swapped out task
at a time is sufficient for your purposes. You may only try this demo version
for a period of 28 days. After that you are still allowed to copy it and keep
a copy of it but if you still like to use EmptyTasks (even the demo-version),
you should register to obtain the full version.
I could keep going on and on trying to make a foolproof clause, but I hope
that that's not necassary. We all know what I'm trying to say: if you like to
use EmptyTasks, buy it.
-=-=-=-=-= Set up of swapfile directories =-=-=-=-=-
When a task is being swapped out it is moved to a swapfile on disc into
the directory: “<EmptyTasks_Tasks$Dir>”.
When EmptyTasks is started (or after a soft-break while EmptyTasks was
running) all swapfiles in “<EmptyTasks_Tasks$Dir>” will be moved to the
directory “<EmptyTasks_OldTasks$Dir>”.
If the two system variables mentioned above are not set (eg. in your boot
sequence) then they will be set to “<EmptyTasks$Dir>.Tasks” and
“<EmptyTasks$Dir>.OldTasks” respectively.
You may set them to point at an archived directory like CFS#.... or
SparkFS#.... .This will save you some discspace when swapping out files.
Remember however that this will slow down the swapping of tasks (especially
swapping out). Note: The “Min. disc free” option won’t work when using an
archived directory as swap space.
Q: Why are the files in “<EmptyTasks_Tasks$Dir>” moved to “<EmptyTasks_
OldTasks$Dir>“?
A: If you reset the machine or turn off the power of the machine whilst
some tasks are still swapped out, their memory contents will still be on disc
(the swapfiles). So, you could still try to retrieve data from them by
loading them into an editor like Zap. But to keep the current task swap
directory clean, all swap files that were still on disc will be moved to a
backup directory when EmptyTasks is started.
The name given to a swapfile consists of the first 5 characters of the
taskname followed by the 4 l.s. digits of the hexadecimal representation of
the taskhandle, separated by a “_”. If neccesary, “_”s will be added to the
taskname until the taskname occupies 5 characters.
-=-=-=-=-= Options Window =-=-=-=-=-
Max. swapped out : The maximum number of swapped out tasks at any time
----------------------------------------------------------------------------
In this demo version of EmptyTasks Max. swapped out has been restricted to 1
----------------------------------------------------------------------------
Max. known : The maximum number of application tasks EmptyTasks will
keep track of
Min. disc free : The minimum space to be left free on the swap-out disc,
specified in either Kilobytes (default) or Megabytes
(add a “K” or “M” to the number)
Max. swap mem. : The maximum amount of memory to be swapped out from a
task (specified in Kilobytes or Megabytes)
Close window after : Close Tasklist window after swap when taskname was
selected with:
Select, Adjust or neither (in the latter case, the
EmptyTasks window will never be closed after clicking
in it)
Maximize Window : Maximize the Tasklist window whenever it is opened or
whenever a new task is started or quitted:
No, Yes
Clear : Delete the OldTasks directory every time EmptyTasks is
started:
No, Yes
What happens if an icon is left completely blank:
- Max. swapped out,
Max. known : if just one of these is blank it will be set to the
value of the other. If both are blank, they’ll both
be set to 32 (in this demo version, Max. swapped out
will be set to 1)
- Min. disc free : will be set to 0K
- Max. swap mem. : will be ignored (equivalent to setting it to 1024 Mega-
byte)
-=-=-=-=-= Further usage (What else is there to know?) =-=-=-=-=-
When a task is being swapped out it is moved to disc and then removed from
memory. If you want to swap it back in again but you haven’t got/can’t
release enough memory to reload it, you have a problem.
Things you can try at that moment:
- switch to a screen mode which occupies less memory (like mode 0)
- shrink your RAMdisc and/or Font Cache.
- Quit other tasks which are in memory or try swapping in and quitting
smaller tasks first (they may free memory in RMA or in the System Sprite
area or, on the RiscPC, may even free Dynamic Areas) thus hopefully
giving you enough free memory.
If you still can't get enough memory to swap a task back in, you might be
able to retrieve some data which was stored within the taskmemory; the
swapped out task is still saved on disc in the directory
“<EmptyTasks_Tasks$Dir>” in a swapfile. You could load this swapfile into an
editor (like Zap) and try to retrieve some data from it. (See also ‘Set up
of swapfile directories’)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Advice: always save documents (or any data processed in a task)
before swapping out a task.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-=-=-=-=-= Disclaimer =-=-=-=-=-
The user is personally responsible for any loss of data or any other damage
caused due to the use of EmptyTasks. I won’t take any responsibility for the
actions of this program.
-=-=-=-=-= Restrictions =-=-=-=-=-
1) EmptyTasks requires RISC-OS 3.xx
2) Some tasks may read out the memory-page-numbers of their memory and swap
them around in their memoryspace. If they read their memory-page-numbers