:: Re: [DNG] Doing away with multi-thr…
Page principale
Supprimer ce message
Répondre à ce message
Auteur: dr.klepp
Date:  
À: dng
Sujet: Re: [DNG] Doing away with multi-threading in my project (netman)
Am Mittwoch, 2. September 2015 schrieb Edward Bartolo:
> Hi all,
>
> I think, I found an alternative to multithreading in netman. This is
> using interprocess communication, although what I have in mind may not
> be proper interprocess communication.
>
> The idea is this: the backend would be converted into some sort of a
> daemon exporting one function and importing another one. The frontend
> would use the exported function from the backend to send it commands.
> The backend would do the same thing with the exported function from
> the frontend:
>
> Visually, this is as follows:
>
> Frontend -------------->> Backend
> Frontend <<-------------- Backend
>
> In my humble opinion, this may help getting rid of having to use
> multithreading to avoid temporary frontend deadlocks. It also solves
> the issue with zombies being created, and would permit me create a
> responsive application but using the KISS principle.
>
>
> Edward
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>


What about using unix domain sockets and a cleartext protocol?

Nik

--
Please do not email me anything that you are not comfortable also sharing with the NSA.