Search the web
Sign In
New User? Sign Up
dyalogusers · Dyalog APL
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 2730 - 2759 of 5356   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
2730
The documentation explicit states that the token pool is FIFO: "The pool is administered on a first-in-first-out basis. This is significant only if tokens of...
Paul S. Mansour
psmansour2000
Offline Send Email
Jan 2, 2007
3:52 am
2731
... The documentation only refers to the queue, not to the consumers. In other words: the consumers will always get the tokens in FIFO order, meaning the first...
Stefano Lanzavecchia
lstefano2001
Offline Send Email
Jan 2, 2007
9:01 am
2732
... There are different ways to implement a server (or a client, for that matter). Dyalog's webserver uses one []DQ per thread per connection. In other words:...
Stefano Lanzavecchia
lstefano2001
Offline Send Email
Jan 2, 2007
9:21 am
2733
... does. Does ... just ... Both really. The problem in mind is the semaphore example in the documentation. I don't understand how that pattern is useful if it...
Paul S. Mansour
psmansour2000
Offline Send Email
Jan 2, 2007
12:40 pm
2734
... that ... connection. In ... alive by the ... dies. I ... don't ... (each ... thread ... connection, the ... thread) and ... thread which ... the ... ...
Paul S. Mansour
psmansour2000
Offline Send Email
Jan 2, 2007
2:30 pm
2735
... Yes, I believe that must be the reason: since it needs to collect the bits of the messages manually it must make sure that they come in in the right order....
Stefano Lanzavecchia
lstefano2001
Offline Send Email
Jan 2, 2007
3:40 pm
2736
At 04:01 AM 1/2/2007, Stefano Lanzavecchia wrote ... It took me a while to understand the idea here -- the tokens are passed out in FIFO order, but the...
J. Merrill
jamesvmerrill
Offline Send Email
Jan 2, 2007
5:29 pm
2737
A little more testing shows that the consumer threads are not served exactly LIFO either. For example, I'll get thread id sequences, indicating what thread...
Paul S. Mansour
psmansour2000
Offline Send Email
Jan 3, 2007
3:43 am
2738
... Careful though: we are talking about consumers all waiting for the same token. In other words, consumers waiting for different tokens, will get them even...
Stefano Lanzavecchia
lstefano2001
Offline Send Email
Jan 3, 2007
9:12 am
2739
At 04:01 AM 1/3/2007, Stefano Lanzavecchia wrote ... I was really referring to the issue that the interpreter must ensure that a thread that's doing something...
J. Merrill
jamesvmerrill
Offline Send Email
Jan 3, 2007
2:35 pm
2740
I have just acquired v11 of Dyalog/W and attempted to load some old V6 workspaces. Unfortunately they cause the version 11 to terminate. The resultant aplcore...
giles_dvdsn
Offline Send Email
Jan 3, 2007
2:53 pm
2741
Giles, If you are willing to trust us with your workspaces, we would be happy to take a look at them and fix the bug which is preventing you from loading them....
Morten Kromberg
mkrom_dyalog
Offline Send Email
Jan 3, 2007
3:24 pm
2742
... Exactly. As far as I know (and as far as I can tell), the thread scheduling is independent of the length of the queue. In other words, if the queue is full...
Stefano Lanzavecchia
lstefano2001
Offline Send Email
Jan 3, 2007
4:21 pm
2743
... callback for ... just examined the ... while ago.) From my own experience (I wrote at least one commercial TCP server using threads and Dyalog's TCP ...
Alexander Balako
balako
Offline Send Email
Jan 3, 2007
6:07 pm
2744
Stefano, James, Your respective comments have been enlightening. Thanks. If indeed, as it appears it is, that the data structure of threads waiting on tokens...
Paul S. Mansour
psmansour2000
Offline Send Email
Jan 4, 2007
4:29 am
2745
... wrote: <snip> ... Alex, I agree with you here. I use a single, global []DQ, with & on the TCPReceive event callback. It is very simple, it appears to work,...
Paul S. Mansour
psmansour2000
Offline Send Email
Jan 4, 2007
4:39 am
2746
At 11:26 PM 1/3/2007, Paul S. Mansour wrote (in part) ... What effect are you trying to get? Are you trying to ensure that only one thread at a time is inside...
J. Merrill
jamesvmerrill
Offline Send Email
Jan 4, 2007
4:55 am
2747
... I am afraid that keeping it on one line is not enough: I have empirical proof that the & is enough to cause a thread switch. ... Alas, you cannot a spawn a...
Stefano Lanzavecchia
lstefano2001
Offline Send Email
Jan 4, 2007
9:12 am
2748
... That's also a question I wanted to ask at this point. The semaphore I know of, is a bit like a critical section, but where not just one but more than one...
Stefano Lanzavecchia
lstefano2001
Offline Send Email
Jan 4, 2007
9:37 am
2749
... I wouldn't define it a set. I would define it a set of multiple queues. Tokens of the same kind are queued with respect to each other, tokens of different...
Stefano Lanzavecchia
lstefano2001
Offline Send Email
Jan 4, 2007
9:51 am
2750
... queues. I agree completely, as you are talking about the tokens in the pool. But I'm talking about the set of processes doing a []TGET. This is apparently...
Paul S. Mansour
psmansour2000
Offline Send Email
Jan 4, 2007
4:12 pm
2751
... semaphore I know ... more than ... with more ... the ... have to wait ... idea is ... indefinitely the ... there are 7 ... other 2 ... get in. If, ... a...
Paul S. Mansour
psmansour2000
Offline Send Email
Jan 4, 2007
4:17 pm
2752
... Cool. I didn't know that. No, you are right, then: the implementation of a strong semaphore appears to be completely non-trivial... I have implemented in...
Stefano Lanzavecchia
lstefano2001
Offline Send Email
Jan 4, 2007
4:36 pm
2753
... only one thread at a time is inside a particular block of code? (The Windows world thinks that's handled by a "critical section".) Yes, (among a variety of...
Paul S. Mansour
psmansour2000
Offline Send Email
Jan 4, 2007
4:43 pm
2754
One of the nice things about v11 is that upon a WS compaction, it returns unused memory to the operating system. I know that a compaction occurrs when you do a...
Paul S. Mansour
psmansour2000
Offline Send Email
Jan 10, 2007
3:00 pm
2755
... One possibly erroneous speculation is that, if the OS is smart, it will be monitoring which memory pages are active and which not, so that it can swap out...
Dick Bowman
bertybullfrog
Offline Send Email
Jan 10, 2007
3:15 pm
2756
At 09:57 AM 1/10/2007, Paul S. Mansour wrote (in part) ... Would it solve things if the application were to include a call to []WA in the routine that closes...
J. Merrill
jamesvmerrill
Offline Send Email
Jan 11, 2007
2:55 am
2757
I think the strategy might make sense. A minor technical point which you may already be aware of: Unused memory is only returned to the operating system on an...
Morten Kromberg
mkrom_dyalog
Offline Send Email
Jan 11, 2007
9:25 am
2758
... of ... []WA in the routine that closes the file? That would certainly solve for the specific scenario, but I'm looking for a more general solution. For...
Paul S. Mansour
psmansour2000
Offline Send Email
Jan 11, 2007
2:10 pm
2759
Morten Kromberg Wrote: [...] We are considering introducing a mechanism which would give finer control, you may not always want all of the above when you call...
Stéphane COEZ
scoez
Offline Send Email
Jan 11, 2007
2:23 pm
Messages 2730 - 2759 of 5356   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help