"Sex allocation is the allocation of resources to male versus female reproduction in sexual species. In dioecious species, where individuals are male or female for their entire lifetimes, the allocation decision lies between producing male or female offspring. In sequential hermaphrodites, where individuals function as one sex early in life and then switch to the other, the allocation decisions lie in what sex to be first and when to change sex."@en .