linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] sigpending rework
@ 2004-12-13 23:06 Kalaky
  2004-12-14  1:14 ` Ulrich Drepper
  0 siblings, 1 reply; 2+ messages in thread
From: Kalaky @ 2004-12-13 23:06 UTC (permalink / raw)
  To: linux-kernel

Hello,

Currently, queued RT signals go into a list of pending signals
for a given task_struct (multiple RT signals can be queued).
When an process dequeues a signal through sigwaitinfo()
we must search the list for the given signal. This search is
always O(n) where n is the number of pending signals,
since we must go through all list members to ensure if
a signal number is still pending.

I'm working on converting the sigpending structure into a vector
of _NSIG sigqueue's for each signal number (which is quite a big
work), this way we can directly access each signal list, delivering
and checking any pending signals in a efficient manner.

Any thoughts ?

TIA,

Kalaky

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-12-14  1:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-13 23:06 [RFC] sigpending rework Kalaky
2004-12-14  1:14 ` Ulrich Drepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).