Threads vs Processes
- Posted by Bruce Douglas <bruce_list at tutopia.com.br> May 02, 2005
- 520 views
Hello, I am new at Euphoria and am really happy with it. I have 2 projects in C++ which were stalled which I have ported to Euphoria and have made a lot of progress now. I am using wxEuphoria which is important for me because I work in Linux but deploy these programs on Windows computers. So, thank-you, Rob and Matt! I have been following your debate on threads vs. processes with great interest. I hope this is not a dumb question. My question is how you implement processes? For example, I'm working on an email checker / deleter and would like to be able to connect simultaneously to several accounts. Also, I have times when the connection freezes but doesn't disconnect and then my poor program gets trapped in the socket call and never returns. I have a timer() call set up but the program is not available to check the timer. It would be nice if I could just call a procedure but not wait for it to finish. When it was good and ready, it could generate an event or set a variable or whatever. If it doesn't return in a certain time, I can have the program handle this more gracefully. I would like to avoid using the Windows API calls since I would like my programs to still work in Linux. Is there a way to implement this without threads? Thanks in advance, Bruce Douglas