An intelligent disk drive is described which includes means for executing
distributed computing tasks including a CPU and associated memory. The
communication interface with the host computer is modified to allow the
host computer to send executable code for a task to the drive and to
allow the drive to communicate the results and status information about
the task to the host computer. A method of organizing data for
distributed processing in the intelligent disk drive is described which
utilizes physical placement of the data around the rotating disk to
optimize the execution of the task. In one embodiment head switching is
used as further optimization in a disk drive having a plurality of heads
to implement alternatives in the task program. In another embodiment, the
intelligent disk drive has means for reading from at least one or more
heads simultaneously while writing to another head.