private int submitGridletsChunk()
    {
        int submittedCount = 0;

        try {
            for (Integer resourceID: _resourcesIDs) {
                int freePECount = super.getNumFreePE(resourceID);
                for (int i = 0; i < freePECount; ++i) {
                    Gridlet g = _gridlets.getNextGridlet(_gpuSimUserID);
                    super.gridletSubmit(g, resourceID);
                    ++submittedCount;
                }
            }
        } catch (NoMoreGridletsException ex) {
            System.out.println(ex.getMessage());
        }

        return submittedCount;
    }