1. Tell me how to give quotas on cpu?

The quota system (available only on ufs and vxfs
filesystems) is built around limits on the two principal
resources of a filesystem:

* inodes
* data blocks

For each of these resources, users can be assigned quotas.
Two limits can be used: hard limit and soft limit. The hard
limit represents an absolute limit on the resource.
Associated with the soft limit is a time limit set by the
administrator. Users can exceed the soft limits for a
limited amount of time.
In summary, for each user, you can assign quotas (soft and
hard limits) for both blocks and inodes. Also a time limit
can be set indicating how long users can exceed the soft limits.
Remember: only super-user (root) can set disk quota.