1460026953-b223e465-8593-43cd-89f3-17331da0fa2d

A semiconductor device is provided which includes a memory part that includes memory cells having different threshold values; a read circuit that reads data from a memory cell to be programmed with write data that is input; and a detection circuit that compares the write data with the data read from the memory cell to thus detect a pattern in which programming of data causes erasing. According to one embodiment, file system or operating system activity relating to a code module is intercepted by a kernel mode driver of a computer system. Then it is determined whether the processor is limited in its ability to compress video image data.