[Spice-devel] Why spicy don't support multiple thread
Marc-André Lureau
marcandre.lureau at gmail.com
Mon Jan 21 03:21:22 PST 2013
Hi
On Fri, Jan 18, 2013 at 11:11 AM, lvguangjun <guangjun.lv at saicocch.com> wrote:
> Why spicy don’t support multiple thread? It don’t make sense on multiple
> core CPU.
The spice client is not CPU-bound, but IO-bound. If you have
particular performance problems, please open a bug with arguments
leading to the conclusion that spice-gtk should use threads to solve
it.
The spice-gtk IO code is async. If CPU tasks start to be of concerned,
we will introduce usage of thread pool to make long task run in
parallel and not block main thread or other channels. There are some
limitations when using GLib or Gtk from multiple threads, and one
needs to be extra careful. Avoiding threads for the moment saved us
from those potential issues.
Patches backed by numbers are welcome,
--
Marc-André Lureau
More information about the Spice-devel
mailing list