<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">If it matters to you, we use 2.2.6
version. I don't know which webkit version and mode you are using.
Things to do change a lot based on version and mode.<br>
<br>
My use case is much more complicated as we use java wrapper around
webkit calls using Java Gnome library. We do use java threads
though, so it's muti threading. To do multiple processing, we fire
multiple processes because almost all our data needs
authentication and we don't want to mix different users sessions.
This is where I think next generation of webkit will be handy as
network process seems to have some of the features I need, so
potentially every tab in the window can have different session
with same site and no mix up of data.<br>
<br>
Key to all your threading issues might be to lookup Gtk idle
handler. Any operation that needs to be done on UI (that is on
webkit DOM or view ) has to be channeled via idle handler. You
queue up the function and wait in another thread until that
function executes and signals you back. Doing lengthy operations
in UI thread results in interesting crashes etc. I am not GTK
expert, but kind folks on this list helped me a lot.<br>
<br>
As far as I know (based on what I have seen in code and process
observations), webkit core is multi threaded with lot of
asynchronous actions happening. As consumer of these, we just
route request via idle handler.<br>
<br>
More specific details if webkit-gtk list members don't object, we
can discuss it here, otherwise you can PM me. In my opinion list
is good place as it really relates to webkit and using it as a
automated (heavy weight) tool rather than just simple browser to
view documents, but I'll let others decide about interest in such
features.<br>
<br>
Regards,<br>
<br>
Niranjan<br>
<br>
On 11/19/2014 06:20 PM, 刘阳 wrote:<br>
</div>
<blockquote cite="mid:2014112010203597810110@hc360.com" type="cite">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }body { font-size: 10.5pt; font-family: 微软雅黑; color: rgb(0, 0, 0); line-height: 1.5; }</style>
<blockquote style="margin-Top: 0px; margin-Bottom: 0px;
margin-Left: 0.5em">
<div><span style="font-family: 微软雅黑, Tahoma; line-height:
normal;">> Le mercredi 19 novembre 2014 à 10:09 -0800,
Niranjan Rao a écrit :</span></div>
<div>
<div style="font-family: 微软雅黑, Tahoma; line-height: normal;">>>
Agreed that webkit is heavy for these operations, but after</div>
<div style="font-family: 微软雅黑, Tahoma; line-height: normal;">>>
experimenting with lot of sites we want to process and tools
that</div>
<div style="font-family: 微软雅黑, Tahoma; line-height: normal;">>>
were/are available, we concluded it was the best technology.
With XVFB</div>
<div style="font-family: 微软雅黑, Tahoma; line-height: normal;">>>
it works perfectly. My next goal is to experiment with
network process</div>
<div style="font-family: 微软雅黑, Tahoma; line-height: normal;">>>
model and see if we can reduce resource consumption little
more.</div>
</div>
<div style="font-family: 微软雅黑, Tahoma; line-height: normal;"><br>
</div>
<div style="font-family: 微软雅黑, Tahoma; line-height: normal;">As
you said, WebKit you use with xvfb works perfectly. </div>
<div style="font-family: 微软雅黑, Tahoma; line-height: normal;">Does
the WebKit you use is <b>Multi-threading Or Multi-processing </b>?</div>
<div style="font-family: 微软雅黑, Tahoma; line-height: normal;">Or
can you just show me a little methods or thought, </div>
<div style="font-family: 微软雅黑, Tahoma; line-height: normal;">how
you did when it needs high concurrency or just handling some
WebKitWebView at the same time?</div>
<div style="font-family: 微软雅黑, Tahoma; line-height: normal;"><br>
</div>
<div style="font-family: 微软雅黑, Tahoma; line-height: normal;">Thanks
!</div>
</blockquote>
</blockquote>
<br>
</body>
</html>