From: Andrew Cagney <ac131313@redhat.com>
To: Michael Snyder <msnyder@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: Stand resume() on its head
Date: Tue, 05 Nov 2002 15:14:00 -0000 [thread overview]
Message-ID: <3DC850C4.2070601@redhat.com> (raw)
In-Reply-To: <3DC841D4.E575221F@redhat.com>
> Andrew Cagney wrote:
>
>>
>> Hello,
>>
>> There have now been several discussion threads that lead to the
>> conclusion that
>>
>> target->resume (ptid_t, int, enum target_signal)
>>
>> needs changing. At present the suggestion is to add a parameter to
>> indicate schedule locking and similar operations.
>>
>> I'd like to propose a different approach. Instead of passing to
>> resume() what to do, have resume() iterate over all the threads asking
>> each what it should do - suspend, step, run, signal, ...
>>
>> I think, in the end, GDB will need to do something like this any way
>> (how else is GDB going to handle suspended threads?) so might as well
>> start earlier rather than later :-)
>>
>> (thinking out loud)
>> Andrew
>
>
> That's probably a good idea. Difficult to know how else to handle
> large numbers of threads, if we eventually have some sort of
> suspend/resume functionality.
>
> If we do this, though, we should pay attention to efficiency,
> since it's fairly important that all threads be activated
> as close to simultaneously as possible.
Here, I think aiming for a slow working solution will be better than
trying for a fast broken one.
Once the model is working, someone can tune it so it can be scaled to
handle that 10 000 threads.
Andrew
prev parent reply other threads:[~2002-11-05 23:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-05 12:28 Andrew Cagney
2002-11-05 12:46 ` Kevin Buettner
2002-11-05 14:57 ` Andrew Cagney
2002-11-05 12:59 ` Daniel Jacobowitz
2002-11-05 14:15 ` Michael Snyder
2002-11-05 20:03 ` Daniel Jacobowitz
2002-11-05 15:10 ` Andrew Cagney
2002-11-05 14:10 ` Michael Snyder
2002-11-05 15:14 ` Andrew Cagney [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3DC850C4.2070601@redhat.com \
--to=ac131313@redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=msnyder@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox