Multiprogramming and time-sharing environment is a process in which share common processing resources such as a CPU or central processing unit. In a computer with a single CPU, a single task should be running any time. In multiprogramming the running task keeps executing until it performs an operation that requires waiting for an external event or until the computer's scheduler by force swaps the running task out of the CPU. This environment was also designed to maximize the CPU handling. In time-sharing environment the running task is required to turn down the CPU, either by its own free will or by an external event such as hardware interrupt. This environment is designed to allow several programs to execute apparently at the same time.
There are two various security problems in multiprogramming environment and time-sharing environment. (1) First, one user can copy or steal another user’s files, program or memory space. This could also lead another user to overwrite on one’s program. This could be very harmful, for example, an administrator was executing a decryption procedure and another user copied or stole the decryption program. (2) Second, resource usage may not be completely controlled or there could also be another user using the system resources (CPU or central processing unit, memory, disk space) without proper accounting, and could cause deadlock for certain users. For example, if user A had resource 1 and was waiting for resource 2, and user B had resource 2 and was waiting for resource 1, deadlock would occur and neither user would be able to make progress in their program, no matter how many time slots they were allocated.
Those problems made us a bit or more serious and scared for the impairment that it, either of the two environments, would lead. But how can we ensure the same degree of security in a time-share machine as we have in a dedicated machine? (On the other hand, dedicated machine is the computer that services one primary function or task. For example, an automobile might have an onboard computer that is dedicated solely to navigation. That is how dedicated machine worked.) And so, in the question, I would say not. We cannot ensure the level of security that the time-sharing machine would offer. Because the protection scheme in every computer or machine was still created by human. It was created by man so man can also find ways to break it. And the more complex the scheme is, the more complicated it is to be certain of its accurate execution. In time-sharing machine, other users can easily access other’s program. They can manipulate, control, steal and copy files from other users. Just by stating that, you cannot guarantee your safety as a user. While in dedicated machine, you will be executing only a single task that made it certainly safer.
You cannot find a certain safety alone in any computer program. But in dedicated machine, you can assure that it is safer than time-sharing machine. Because anyone can be a user, anyone can use or access, anyone can break the security or protection scheme that is what we call “hacking”. Once you hacked a system, it only implies that, that system is harmed. (Security tips from Mac OS X 10.5: as a user, you cannot share your password in any program; secure back-up files.)