A control device for controlling an equipment or a machine, comprising: a hardware resource, comprising one or more processors and storage devices; a real-time operating system, executed using the hardware resource; a general purpose operating system, executed using the hardware resource, and operating independently of the real-time OS; and a hypervisor, managing the hardware resource allocated to the real-time OS and the general purpose OS, wherein the control device comprises: a file sharing server function operating on the general purpose OS to reserve a part of the storage device as a storage area, and to share at least one part of the reserved storage area set by a user with another device, wherein access to the storage area reserved by the real-time OS from an application executed by the general purpose OS is prohibited; a function operating on the real-time OS to participate in the file sharing server function as a client through the hypervisor; a function operating on the real-time OS to periodically monitor whether or not a shared area provided by the file sharing server function is accessible, wherein the hypervisor establishes a logical connection between the real-time OS and the general purpose OS; and a function of implementing a plurality of types of storage areas according to properties or types of data, comprising: setting the storage area of an HDD as a shared folder capable of being accessed from any of the real-time OS and the general purpose OS; setting a RAM disk that is reserved by the real-time OS and not accessible for the general purpose OS; and setting an SSD to back up an information held by the RAM disk. a hardware resource, comprising one or more processors and storage devices; a real-time operating system, executed using the hardware resource; a general purpose operating system, executed using the hardware resource, and operating independently of the real-time OS; and a hypervisor, managing the hardware resource allocated to the real-time OS and the general purpose OS, wherein the control device comprises: a file sharing server function operating on the general purpose OS to reserve a part of the storage device as a storage area, and to share at least one part of the reserved storage area set by a user with another device, wherein access to the storage area reserved by the real-time OS from an application executed by the general purpose OS is prohibited; a function operating on the real-time OS to participate in the file sharing server function as a client through the hypervisor; a function operating on the real-time OS to periodically monitor whether or not a shared area provided by the file sharing server function is accessible, wherein the hypervisor establishes a logical connection between the real-time OS and the general purpose OS; and a function of implementing a plurality of types of storage areas according to properties or types of data, comprising: setting the storage area of an HDD as a shared folder capable of being accessed from any of the real-time OS and the general purpose OS; setting a RAM disk that is reserved by the real-time OS and not accessible for the general purpose OS; and setting an SSD to back up an information held by the RAM disk. a file sharing server function operating on the general purpose OS to reserve a part of the storage device as a storage area, and to share at least one part of the reserved storage area set by a user with another device, wherein access to the storage area reserved by the real-time OS from an application executed by the general purpose OS is prohibited; a function operating on the real-time OS to participate in the file sharing server function as a client through the hypervisor; a function operating on the real-time OS to periodically monitor whether or not a shared area provided by the file sharing server function is accessible, wherein the hypervisor establishes a logical connection between the real-time OS and the general purpose OS; and a function of implementing a plurality of types of storage areas according to properties or types of data, comprising: setting the storage area of an HDD as a shared folder capable of being accessed from any of the real-time OS and the general purpose OS; setting a RAM disk that is reserved by the real-time OS and not accessible for the general purpose OS; and setting an SSD to back up an information held by the RAM disk. setting the storage area of an HDD as a shared folder capable of being accessed from any of the real-time OS and the general purpose OS; setting a RAM disk that is reserved by the real-time OS and not accessible for the general purpose OS; and setting an SSD to back up an information held by the RAM disk.