Fog cloud computing promotes the combination of fog and cloud nodes to satisfy the requests of data accessing from IoT (Internet of Things) devices. To reduce the data delay and enhancing the QoS (Quality of Service), effective task scheduling is one of the major requirements in fog cloud environment. Numerous approaches have been deployed by the researchers for maintaining the QoS requirements. However, the emergence of bursty traffic affects the process of task scheduling due to high service latency. Effective QoS is promoted by minimizing the costs of computation, communication and deadline violation cost. To achieve the main objective of cost minimization, the proposed work is implemented by adopting a novel model called HFSGA (Hybrid Flamingo Search with a Genetic Algorithm) for better task scheduling. Seven basic benchmark optimization test functions are used to compare the performance of HFSGA with other well-known algorithms. Also, Friedman Rank Test is performed to demonstrate the significance of the results. The implemented model presents better outcomes with respect to PDST (Percentage of deadline satisfied task), makespan and cost. When compared to the existing algorithms that include Ant colony optimization (ACO), Particle swarm optimization (PSO), Genetic Algorithm (GA), Min-CCV, Min-V and Round Robin (RR) approach, the proposed work shows better output in satisfying the task scheduling process.