Index: openacs-4/packages/acs-core-docs/www/programming-with-aolserver.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/programming-with-aolserver.adp,v diff -u -r1.5 -r1.6 --- openacs-4/packages/acs-core-docs/www/programming-with-aolserver.adp 25 Apr 2018 08:38:28 -0000 1.5 +++ openacs-4/packages/acs-core-docs/www/programming-with-aolserver.adp 3 Sep 2024 15:37:32 -0000 1.6 @@ -1,16 +1,22 @@ -{/doc/acs-core-docs {ACS Core Documentation}} {Programming with AOLserver} +{/doc/acs-core-docs/ {ACS Core Documentation}} {Programming with AOLserver} Programming with AOLserver +

-Programming with AOLserver

<authorblurb>

By Michael Yoon, Jon Salz and Lars -Pind.

</authorblurb>
+Programming with AOLserver
+

By Michael Yoon, Jon Salz and Lars Pind.

+OpenACS docs are written by the named authors, and may be edited by +OpenACS documentation staff.

The global command

When using AOLserver, remember that there are effectively two types of global @@ -40,7 +46,7 @@ that would affect (and complicate) our use of script-global variables dramatically, which would then be better described as thread-global variables. -Given AOLserver's behaviour, however, "script-global" +Given AOLserver's behavior, however, "script-global" is a more appropriate term.

@@ -49,7 +55,7 @@ ns_schedule_proc and ad_schedule_proc each take a -thread flag to cause a -scheduled procedure to run asychronously, in its own thread. It +scheduled procedure to run asynchronously, in its own thread. It almost always seems like a good idea to specify this switch, but there's a problem.

It turns out that whenever a task scheduled with ns_schedule_proc -thread or ad_schedule_proc -thread t is run, AOLserver creates a brand new thread and a brand new interpreter, @@ -228,8 +234,8 @@ However, when using ns_set get to perform lookup by name, they perform a linear lookup, whereas arrays use a hash table, so ns_sets are slower than arrays when the -number of entries is large.

($‌Id: programming-with-aolserver.xml,v 1.9 -2017/12/22 13:23:35 gustafn Exp $)

+number of entries is large.

($‌Id: programming-with-aolserver.xml,v 1.10.2.1 +2019/08/09 20:04:23 gustafn Exp $)