PURPOSE: To prevent the destruction of a program and data owing to the trouble of a memory device by using a memory resource allocating means which allocates automatically a memory device for redundancy that is for the double writing of both program and data.
CONSTITUTION: A service processor SVP3 supplies the trouble data on the memory devices 6 forming a system from a processor 1 and stores them into a trouble data storing file 2. While a memory resource control means 5 supplies the trouble data on the devices 6 from the file 2 via the SVP3 to check the trouble frequencies, the trouble modes, etc., of the devices 6 when the programs and data are stored in the devices 6 from a program/data storing file 8. Then a memory device 6' for redundancy which performs the double writing actions of both programs and data is automatically allocated by a memory resource allocating means 4 with a device 6 having a high trouble frequency or a device 6 which has presently a 1-bit error, etc.