The Claw
2007-09-02 00:56:43
I think thats what its called, is it possible? It would be pretty sweet to be able to run multiple functions/procedures simultaneously
2007-09-02 00:56:43
2007-09-02 01:00:51
2007-09-02 01:16:52
2007-09-02 05:05:42
2007-09-02 23:08:34
2007-09-03 00:02:28
2007-09-03 01:00:22
2007-09-03 01:10:51
2007-09-03 02:16:02
2007-09-03 02:40:00
2007-09-04 20:33:15
2007-09-05 10:04:18
From: rotflmfwaoYou can make a very basic multi-threading system in scar… Using SetTimeout; Kind easy:rolleyes:.
What about SendMultiScarMessage or sumthin like that? Just a universal inter-scar message?
2007-09-05 11:39:07
2007-09-05 14:14:07
From: rulerNo i was wrong ^^. SetTimeOut calls another procedure\function after the time sou speficy in the SetTimeOut procedure: SetTimeOut(1,'test'); This will call the procedure Test 1 second after you used this procedure.
explain setTimeOut
program New;
var
I , Temp: integer;
Procedure Bla;
begin;
WritelN('JEEE!');
Wait(500);
SetTimeout(1,'bla');
end;
begin
SetTimeout(1,'bla');
Wait(200);
For I:= 0 to 999999999999999999 do
begin;
Temp := GetSystemTime;
Wait(1000);
Writeln(inttostr(Getsystemtime-temp));
end;
end. But it doesn't operate in a seperate thread, it just pauses the action your doing..
2007-09-05 14:28:15
From: c0de
That would create an endless loop and SCAR would choke after some time ;-) Trust me I have experience lol.
2007-09-10 20:30:01
2007-09-11 02:32:36
2007-09-11 10:00:16
From: elementalelf
in short, there is no way short of completely deconstructing scar, to make it work with hyperthreaded/multicore processors.
moreover why would you want to? there is no concievable benefit that could not be gotten by using an only slightly laggier repeat/wait/until(this) script.
the best way to utilize hyperthreaded/dual core processors is by running VMware.
edit: perhaps i should qualify the first statement
multithreading can only occur on a processor which either supports hyperthreading(alot of the later P4's do this) or is multicored(almost any new processor is multicored)
however there is alot more to multithreading then just telling the processor "do this while its doing this"
you have to specify which core gets which instruction etc etc.
2007-09-11 10:12:45
From: regecks
I spoke to Kaitnieks a long time ago about /true/ multi-threading, and he told me, while it was possible, there was no in-built functionality in the scripting API he is using to allow such a feature.
However, it is also possible to create another Script object and then custom-code functionality for interaction between the two, but it'd be a handful to make …
2007-09-11 13:36:29