[cl-muproc-devel] [CL-MUPROC] Troubles with threads in SBCL

cosmonaut.ok cosmonaut.ok at zoho.com
Wed Oct 9 10:52:59 UTC 2013


Hi all

I'm new with cl-muproc. Playing with cl-muproc, I've got strange trouble. SBCL cannot create more, than about 600 threads.

Here is simple code, which I use to get this error:

(defun newmuproc ()
       (muproc-spawn (gensym)
             (lambda ()
             (mumsg-receive (from)
               ((terminated reason) t
                (muproc-log-errorstream
                 "Got termination from ~a: ~a.~%" terminated reason))
               ((test)
                (muproc-log-errorstream "Got value ~a.~%" test)))
             (muproc-log-errorstream "Done.~%"))
             nil
             :trap-exits t
             :errorstream *trace-output*))

(dotimes (i 1000) (newmuproc))

Could not create a new thread.
   [Condition of type SIMPLE-ERROR]

Restarts:
 0: [RETRY] Retry SLIME REPL evaluation request.
 1: [*ABORT] Return to SLIME's top level.
 2: [ABORT] Abort thread (#<THREAD "new-repl-thread" RUNNING {BF89CB1}>)

; Evaluation aborted on #<SIMPLE-ERROR "Could not create a new thread." {B604149}>.

(length (muproc-all-processes))
584

sbcl --version
SBCL 1.0.57.0.debian

Best regards Alexander aka 'CosmonauT' Vynnyk



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cl-muproc-devel/attachments/20131009/8863effe/attachment.html>


More information about the cl-muproc-devel mailing list