1. A system for executing at least one task via a communication network, comprising: a plurality of devices configured to establish the communication network, wherein at least two of the plurality of devices are wireless mobile devices which each comprise: a database storing at least one capability of one or more of the plurality of devices in the communication network to execute at least a portion of a task; a resource module adapted to select at least one optimal capability in the one or more devices to perform the at least a portion of the task; a decision module adapted to allocate the at least a portion of the task to one or more designated devices among the plurality of devices based on the selection of the at least one optimal capability of the plurality of devices; and an execution module in the one or more designated devices adapted to perform the allocated at least a portion of the task, wherein the one or more designated devices provides at least a portion of a final output upon completing the allocated at least a portion of the task; and wherein the at least one capability is exchanged among the plurality of devices prior to invoking the at least a portion of the task.