Ask a Question related to PERL Miscellaneous, Design and Development.
-
David Morel #1
Need a bit of help with threads programming
Hi all,
I need a subroutine that reads the next line in an open file.
Ordinarily this would be a trivial subroutine... you just read a line
off of a filehandle.
However, I need this subroutine to be threads-safe. That is, I plan on
having many threads be using this subroutine, and I need to make sure
that it is always reading the next line no matter what thread is using
it.
The problem I came across is that you are not allowed to share
filehandles (GLOBS). So how would I go about implementing this
routine?
Thanks,
David Morel
David Morel Guest
-
freelance web programming, web site design,c programming, java programming, VERY Low Cost web design and more
Find expert freelance programmers and designers at the prices you want to pay. Post your projects and programmers will place bids, you choose the... -
When threads block
It's difficult to do any serious multi-threaded network programming when the whole process blocks on system calls like read, write, and select. Is... -
Threads troubles
Hi, I am trying to write a multiuser server (for games, chat, etc) in Perl. In time, this program might have to service >500 users... -
Sockets and threads
Probably a dumb question, but here goes: If I have a TCPSocket object that is being used by two threads, one of which only reads from it while... -
Using threads to obtain a value
I have a few classes that all try to obtain the same data as each other using different methods. Each one takes around 5 seconds to get the data,...



Reply With Quote

