Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Bomshik Kim <bskim@ropas.kaist.ac.kr>
To: caml-list@inria.fr
Subject: [Q] inter_process communication in CamlTk,OCaml
Date: Fri, 14 Jul 2000 01:04:57 +0900 (KST)	[thread overview]
Message-ID: <Pine.GSO.4.10.10007140103180.8245-100000@ropas.kaist.ac.kr> (raw)


Hello.

Now I'm making some application with CamlTk and OCaml.
Problem is how to communicate between GUI part and Working part.

In GUI part, there are start_work button, and stop_work button.
The work is started in a new_process (by fork) by clicking 
start_work button. But the work may take a long time 
(let's assume 10 min) and raise an exception. 
and I want to make the result of work shown on GUI Text.
So GUI part should receive the result from Work part.

Usually, socket is used for inter_process communication.
If recvfrom function is used for receiving the result 
from Work part by UDP, then any other input event is not
archieved. Because GUI waits the result(sleep until receiving the result).
That means user can't stop the work by clicking stop_work button
in the middle of Work processing .

If there is nice method to communicate between parent(GUI part) process
and child (Working part) process, let me know it.

Sincerely

--
Bomshik Kim, M.S. Candidate   
Programming Language Lab.
Division of CS, Dept. of EECS, KAIST
http://ropas.kaist.ac.kr/~bskim




             reply	other threads:[~2000-07-16 22:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-13 16:04 Bomshik Kim [this message]
2000-07-21  2:10 ` Jacques Garrigue

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=Pine.GSO.4.10.10007140103180.8245-100000@ropas.kaist.ac.kr \
    --to=bskim@ropas.kaist.ac.kr \
    --cc=caml-list@inria.fr \
    /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