S
sonet
Will the win2003 server lock the directory when create and
read difference files at the same time?
my $JobFileLocation='c:/pjob.sp';
open( my $JobFile, $JobFileLocation );
binmode $JobFile;
$contents = join('',<$JobFile>);
close($JobFile);
Sometime the line 4 will block. And cpu speed up to 25%(The
system have 4 cpu). The process stop at line 4 and the system
is hang. Sometime the file size is just 300k. The memory still
enough and system does not busy at that time.The situation
occur about 1~2 times / one day.
Will it solve the problem by rewrite the code ?
$/=undef;
$contents = <$JobFile>;
The second method read file is seem fast than the ftrst one.
Need i read files using nonblocking mode? And how to read
a file in nonblocking mode ?
================================================
cpu 4
memory 4G
hd 32G (SCSI)
Active perl, v5.8.8 built for MSWin32-x86-multi-thread
Win2003 server
read difference files at the same time?
my $JobFileLocation='c:/pjob.sp';
open( my $JobFile, $JobFileLocation );
binmode $JobFile;
$contents = join('',<$JobFile>);
close($JobFile);
Sometime the line 4 will block. And cpu speed up to 25%(The
system have 4 cpu). The process stop at line 4 and the system
is hang. Sometime the file size is just 300k. The memory still
enough and system does not busy at that time.The situation
occur about 1~2 times / one day.
Will it solve the problem by rewrite the code ?
$/=undef;
$contents = <$JobFile>;
The second method read file is seem fast than the ftrst one.
Need i read files using nonblocking mode? And how to read
a file in nonblocking mode ?
================================================
cpu 4
memory 4G
hd 32G (SCSI)
Active perl, v5.8.8 built for MSWin32-x86-multi-thread
Win2003 server