This is very system dependent. What system are you running? A bitQuote:>Is there a way to prevent a process from being swapped out of main memory?
>The reason is a process is blocked on a read() call on the serial port.
>Other programs use memory in the meantime such that this process is
>swapped out by the time data comes in to the serial port. Sometimes the
>process is not not swapped back in fast enough (due to concurrent disk
>access by other processes) and the data is not read properly.
>So is there a way to speed up this swap-in to main memory or can I prevent
>the swap-out in the first place?
more information would be useful.
--
Reasonable people adapt themselves to the world. Unreasonable people
attempt to adapt the world to themselves. All progress, therefore,
depends on unreasonable people.
-- George Bernard Shaw