Good Morning Bruce,

Soft-threads ( software threads or maybe vs hard-threads) are a hybrid
between native co-expressions and threads made possible by my recent
changes to allow native coswitch() to coexist with concurrent threads. They
are similar to native co-expressions in that they are completely a Unicon
thing (no OS context, i.e can't be scheduled by the OS), but they are
similar to threads in that they are concurrent. Since a soft thread doesn't
have a pthread (OS context) it needs to be scheduled "manually". Unlike
co-expressions which get scheduled via an explicit activation, soft threads
are managed implicitly by the language's runtime. That means we need a
scheduler that takes care of this new task with all of the problems that
comes with it. :)

The goal is allow us to create a lot of "cheap" concurrent threads even
without creating pthreads, or get by with a few pthreads through thread
pooling, etc. The idea is to decouple Unicon's threads from the the OS
threads.

What I have committed so far under "SoftThread" ifdefs is very very basic
 experimental implementation that I did in under two hours. I got some
basic scheduling to work and was able to run a small demo. We have a long a
long way to go. If anyone is interested in this or helping with
implementation I'd be very happy to share more details with them.

Cheers,
Jafar






On Thu, Apr 28, 2016 at 8:25 PM, Bruce & Breeanna Rennie <
bren...@dcsi.net.au> wrote:

> Good morning Jafar,
>
> Can you clue us into what the soft-thread changes are for, please?
>
> regards
>
> Bruce Rennie
>
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Unicon-group mailing list
Unicon-group@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to